|
|
@ -1,7 +1,7 @@ |
|
|
|
version: '3.6' |
|
|
|
version: '3.6' |
|
|
|
|
|
|
|
|
|
|
|
services: |
|
|
|
services: |
|
|
|
|
|
|
|
# store datas in DB |
|
|
|
influxdb: |
|
|
|
influxdb: |
|
|
|
image: influxdb:1.8-alpine |
|
|
|
image: influxdb:1.8-alpine |
|
|
|
container_name: influxdb |
|
|
|
container_name: influxdb |
|
|
@ -13,6 +13,7 @@ services: |
|
|
|
- influxdb_data:/var/lib/influxdb |
|
|
|
- influxdb_data:/var/lib/influxdb |
|
|
|
- ./influxdb/imports:/imports |
|
|
|
- ./influxdb/imports:/imports |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Dashboard |
|
|
|
grafana: |
|
|
|
grafana: |
|
|
|
image: grafana/grafana:8.0.2 |
|
|
|
image: grafana/grafana:8.0.2 |
|
|
|
container_name: grafana |
|
|
|
container_name: grafana |
|
|
@ -29,6 +30,7 @@ services: |
|
|
|
- ./grafana/provisioning/:/etc/grafana/provisioning/ |
|
|
|
- ./grafana/provisioning/:/etc/grafana/provisioning/ |
|
|
|
- ./grafana/dashboards/:/var/lib/grafana/dashboards/ |
|
|
|
- ./grafana/dashboards/:/var/lib/grafana/dashboards/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# host metrics |
|
|
|
telegraf: |
|
|
|
telegraf: |
|
|
|
image: telegraf:1.18-alpine |
|
|
|
image: telegraf:1.18-alpine |
|
|
|
# image: telegraf:latest #(for amd64) |
|
|
|
# image: telegraf:latest #(for amd64) |
|
|
@ -43,6 +45,21 @@ services: |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- '8125:8125/udp' |
|
|
|
- '8125:8125/udp' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# containers metrics |
|
|
|
|
|
|
|
cadvisor: |
|
|
|
|
|
|
|
image: gcr.io/cadvisor/cadvisor |
|
|
|
|
|
|
|
# + image arm64 |
|
|
|
|
|
|
|
container_name: cadvisor |
|
|
|
|
|
|
|
restart: unless-stopped |
|
|
|
|
|
|
|
volumes: |
|
|
|
|
|
|
|
- /:/rootfs:ro |
|
|
|
|
|
|
|
- /var/run:/var/run:rw |
|
|
|
|
|
|
|
- /sys:/sys:ro |
|
|
|
|
|
|
|
- /var/lib/docker:/var/lib/docker:ro |
|
|
|
|
|
|
|
- /cgroup:/cgroup:ro |
|
|
|
|
|
|
|
ports: |
|
|
|
|
|
|
|
- '8080:8080' |
|
|
|
|
|
|
|
# gather metrics and launch alerts |
|
|
|
prometheus: |
|
|
|
prometheus: |
|
|
|
image: prom/prometheus:v2.17.1 |
|
|
|
image: prom/prometheus:v2.17.1 |
|
|
|
container_name: prometheus |
|
|
|
container_name: prometheus |
|
|
@ -58,8 +75,9 @@ services: |
|
|
|
- '--storage.tsdb.retention.time=200h' |
|
|
|
- '--storage.tsdb.retention.time=200h' |
|
|
|
- '--web.enable-lifecycle' |
|
|
|
- '--web.enable-lifecycle' |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- "9090:9090" |
|
|
|
- '9090:9090' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# alert manager! |
|
|
|
alertmanager: |
|
|
|
alertmanager: |
|
|
|
image: prom/alertmanager:v0.20.0 |
|
|
|
image: prom/alertmanager:v0.20.0 |
|
|
|
container_name: alertmanager |
|
|
|
container_name: alertmanager |
|
|
@ -70,7 +88,7 @@ services: |
|
|
|
- '--config.file=/etc/alertmanager/alertmanager.yml' |
|
|
|
- '--config.file=/etc/alertmanager/alertmanager.yml' |
|
|
|
- '--storage.path=/alertmanager' |
|
|
|
- '--storage.path=/alertmanager' |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- "9093:9093" |
|
|
|
- '9093:9093' |
|
|
|
|
|
|
|
|
|
|
|
pushgateway: |
|
|
|
pushgateway: |
|
|
|
image: prom/pushgateway:v1.2.0 |
|
|
|
image: prom/pushgateway:v1.2.0 |
|
|
|