Last active
May 5, 2024 18:39
-
-
Save renatocassino/6958ea64d40f6fbcb4f596984bc450c3 to your computer and use it in GitHub Desktop.
Docker compose to build graphite, statsd, grafana and Loki (logs)
This file contains hidden or 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: | |
loki: | |
image: grafana/loki:2.0.0 | |
ports: | |
- "3100:3100" | |
command: -config.file=/etc/loki/local-config.yaml | |
promtail: | |
image: grafana/promtail:2.0.0 | |
volumes: | |
- /var/log:/var/log | |
command: -config.file=/etc/promtail/config.yml | |
grafana: | |
image: grafana/grafana:latest | |
ports: | |
- "3000:3000" | |
depends_on: | |
- graphite-statsd | |
- promtail | |
- loki | |
volumes: | |
- grafana-storage:/var/lib/grafana | |
graphite-statsd: | |
image: graphiteapp/graphite-statsd | |
ports: | |
- 2003-2004:2003-2004 | |
- 2023-2024:2023-2024 | |
- 8125:8125/udp | |
- 8126:8126 | |
- 8080:80 # Graphite | |
volumes: | |
grafana-storage: | |
external: true | |
# To configure: | |
# loki: http://loki:3100 | |
# graphite: http://graphite-statsd:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment