Created
November 22, 2021 22:50
-
-
Save Pablohn26/dab02c4874ac94889d9c1d2fa28aac89 to your computer and use it in GitHub Desktop.
Graphite + grafana + ElasticSearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
graphite: | |
# Not working due to a configuration error :( | |
image: graphiteapp/graphite-statsd:latest | |
container_name: graphite | |
hostname: graphite | |
volumes: | |
- graphite-storage:/opt/graphite/storage | |
ports: | |
- 80:80 | |
- 2003-2004:2003-2004 | |
- 2023-2024:2023-2024 | |
- 8125:8125/udp | |
- 8126:8126 | |
grafana: | |
image: grafana/grafana:latest | |
container_name: grafana | |
hostname: grafana | |
environment: | |
- GF_SECURITY_ADMIN_PASSWORD=secret | |
volumes: | |
- grafana-storage:/var/lib/grafana | |
ports: | |
- "3000:3000" | |
depends_on: | |
- graphite | |
- elasticsearch | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2 | |
container_name: elasticsearch | |
hostname: elasticsearch | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- discovery.zen.minimum_master_nodes=1 | |
- discovery.type=single-node | |
- network.host=0.0.0.0 | |
- "ES_JAVA_OPTS=-Xms512m -Xmx1g" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- elastic-storage:/usr/share/elasticsearch/data | |
ports: | |
- "9200:9200" | |
benchmark: | |
image: logzio/elasticsearch-benchmark-tool | |
container_name: benchmark | |
hostname: benchmark | |
environment: | |
- GRAPHITE_SERVER="graphite" | |
- GRAPHITE_PREFIX="Elasticsearch" | |
- SERVICE_HOST="BENCHMARK_TEST_NAME" | |
volumes: | |
- ./config.conf:/config.conf | |
volumes: | |
grafana-storage: | |
graphite-storage: | |
elastic-storage: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment