Created
May 14, 2022 04:29
-
-
Save karuna/89d53581232a04be3b93e30d21f76362 to your computer and use it in GitHub Desktop.
prometheus+grafana+cadvisor
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.8' | |
services: | |
prometheus: | |
image: prom/prometheus:latest | |
container_name: prometheus | |
restart: always | |
ports: | |
- '9090:9090' | |
volumes: | |
- ./monitoring/prometheus:/etc/prometheus | |
command: | |
- '--config.file=/etc/prometheus/prometheus.yml' | |
- '--web.external-url=http://localhost:9090' | |
grafana: | |
image: grafana/grafana:latest | |
container_name: grafana | |
restart: always | |
ports: | |
- '3000:3000' | |
volumes: | |
- ./monitoring/grafana/data:/var/lib/grafana | |
- ./monitoring/grafana/provisioning:/etc/grafana/provisioning | |
environment: | |
GF_SECURITY_ADMIN_USER: admin | |
GF_SECURITY_ADMIN_PASSWORD: admin | |
alertmanager: | |
image: prom/alertmanager:latest | |
container_name: alertmanager | |
ports: | |
- '9093:9093' | |
volumes: | |
- ./monitoring/alertmanager:/etc/alertmanager | |
command: | |
- '--config.file=/etc/alertmanager/alertmanager.yml' | |
- '--web.external-url=http://localhost:9093' | |
cadvisor: | |
image: gcr.io/cadvisor/cadvisor:latest | |
container_name: cadvisor | |
restart: always | |
ports: | |
- '8080:8080' | |
volumes: | |
- /:/rootfs:ro | |
- /var/run:/var/run:rw | |
- /sys:/sys:ro | |
- /var/lib/docker/:/var/lib/docker:ro | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment