Create a gist now

Instantly share code, notes, and snippets.

Monitor Elasticsearch 2.x with SPM Client on Docker
spm-client:
image: sematext/spm-client
container_name: spm-client
# share the network with the host to reach ES on localhost:9200
net: host
environment:
# SPM Token from http://apps.sematext.com
- SPM_CONFIG=${SPM_TOKEN} es standalone
volumes:
# spm-client > v1.31.65 requires access to docker socket
- /var/run/docker.sock:/var/run/docker.sock
elasticsearch:
image: elasticsearch:latest
net: host
ports:
- "9200:9200"
volumes:
# set your data directory and other options ...
- /var/es-data/:/usr/share/elasticsearch/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment