KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
logzio-es2graphite
★ 15
Open GitHub ↗
Elasticsearch stats to graphite
Download README (.md)
Explore Similar Repositories
ng2-wizard
:
No description available.
loadie
:
Android Loaders for the rest of us
locationservice
:
Service to keep a historical record of team member locations
smart-contract
:
couple of smart contracts written in solidity
framer.module.cloudstitch
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
logzio-es2graphite
?
Download (.md)
# Logzio es2graphite This is the codebase for Logz.io's es2graphite docker image. [Docker Hub](https://hub.docker.com/r/logzio/es2graphite/) ## 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 ...=... ...) |Name|Description|Mandatory|Default| |---|---|---|---| |ELASTICSEARCH_ADDR|Your Elasticsearch cluster address to monitor (preferably, the ip/hostname of one of your client nodes) - the protocol and port are not required|Yes|-| |GRAPHITE|The graphite server the metrics should end up in|Yes|-| |ELASTICSEARCH_PROTOCOL|http or https. Upper or lower case are acceptable. Typos arre knot.|No|http| |ELASTICSEARCH_PORT|Port number (usually 9200)|No|9200| |ELASTICSEARCH_USER_NAME|Username for basic auth|No|| |ELASTICSEARCH_PASSWORD|Password for basic auth|No|| |GRAPHITE_PREFIX|The prefix under graphite you want your metrics in. We will add the cluster name, and the node name after that|No|Elasticsearch| |GRAPHITE_PROTOCOL|Graphite protocol. Allowed values are 'pickle' or 'plaintext'|No|pickle| |GRAPHITE_PORT|Graphite port|No|2004| |INTERVAL_SECONDS|The frequency in which Elasticsearch is to be sampled (preferably, the same value as your graphite configured metrics interval)|No|10| |BULK_SIZE|The amount of metrics to be sent in each bulk request|No|50| |MAX_RETRY_BULK|The number of repeated attempts to send a bulk that failed on IOError (originated from graphite)|No|3| ## 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 ```bash docker run --restart=always -d --name="es2graphite" \ -e ELASTICSEARCH_ADDR="es-client.internal.domain.example" \ -e GRAPHITE="graphite.internal.domain.example" \ -e ELASTICSEARCH_PROTOCOL="https" \ -e ELASTICSEARCH_USER_NAME="mahUser" \ -e ELASTICSEARCH_PASSWORD="mahPassword" -e GRAPHITE_PREFIX="PROD.Elasticsearch" \ -e INTERVAL_SECONDS=20 \ -e BULK_SIZE=10 \ logzio/es2graphite ``` ## Dashboard Example You can take the dashboard here under Grafana Dashboard Example as a baseline of your dashboard. Use find replace to: - GRAPHITE_PREFIX - The prefix where this docker holds the metrics - COLLECTD_GRAPHITE_PREFIX - The prefix where collectd sends the metrics ## Grafana Screenshots    