Sign inSign up

logzio/es2graphite

By logzio

•Updated almost 10 years ago

Container That will query your Elasticsearch cluster and send any numerical metric found to graphite

Image
5

100K+

logzio/es2graphite repository overview

⁠Logzio es2graphite

This is the codebase for Logz.io's es2graphite docker image. GitHub⁠

⁠Overview

This docker container will query your Elasticsearch cluster under /_node/stats and send any numerical metric found to graphite.

⁠Parameters

The following parameters need to be passed as environment variables to the container (-e ...=... -e ...=... ...)

NameDescriptionMandatoryDefault
ELASTICSEARCH_ADDRYour Elasticsearch cluster address to monitor (preferably, the ip/hostname of one of your client nodes) - the protocol and port are not requiredYes-
GRAPHITEThe graphite server the metrics should end up inYes-
GRAPHITE_PREFIXThe prefix under graphite you want your metrics in. We will add the cluster name, and the node name after thatNoElasticsearch
GRAPHITE_PORTGraphite pickle portNo2004
INTERVAL_SECONDSThe frequency in which Elasticsearch is to be sampled (preferably, the same value as your graphite configured metrics interval)No10
BULK_SIZEThe amount of metrics to be sent in each bulk requestNo50
MAX_RETRY_BULKThe number of repeated attempts to send a bulk that failed on IOError (originated from graphite)No3

⁠Path in graphite

This docker container will take the parameter GRAPHITE_PREFIX you supplied (or the default) and add the cluster name, and node name to the path. For example:

Elasticsearch.prefix.MY_ES_CLUSTER.node1.jvm.mem.heap_used_percent

⁠Run Examples

docker run --restart=always -d --name="es2graphite" \
                        -e ELASTICSEARCH_ADDR="es-client.internal.domain.example" \
                        -e GRAPHITE="graphite.internal.domain.example" \
                        -e GRAPHITE_PREFIX="PROD.Elasticsearch" \
                        -e INTERVAL_SECONDS=20 \
                        -e BULK_SIZE=10 \
                        logzio/es2graphite

⁠Grafana Screen Shots

Dashboard prtscr 1 Dashboard prtscr 2 Dashboard prtscr 3 Dashboard prtscr 4

Tag summary

Content type

Image

Digest

Size

17.7 MB

Last updated

almost 10 years ago

docker pull logzio/es2graphite