2022-09-21 06:11:58 +08:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
services:
|
2023-05-16 19:00:16 +08:00
|
|
|
|
2022-09-21 06:11:58 +08:00
|
|
|
prometheus:
|
|
|
|
container_name: prometheus
|
|
|
|
image: gravitl/netmaker-prometheus:latest
|
2023-05-16 19:00:16 +08:00
|
|
|
env_file: ./netmaker.env
|
2022-09-21 06:11:58 +08:00
|
|
|
environment:
|
2023-05-16 19:00:16 +08:00
|
|
|
# config-dependant vars
|
|
|
|
- NETMAKER_METRICS_TARGET=netmaker-exporter.${NM_DOMAIN}
|
2022-09-21 06:11:58 +08:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- prometheus_data:/prometheus
|
|
|
|
depends_on:
|
|
|
|
- netmaker
|
2023-05-16 19:00:16 +08:00
|
|
|
|
2022-09-21 06:11:58 +08:00
|
|
|
grafana:
|
|
|
|
container_name: grafana
|
|
|
|
image: gravitl/netmaker-grafana:latest
|
2023-05-16 19:00:16 +08:00
|
|
|
env_file: ./netmaker.env
|
2022-09-21 06:11:58 +08:00
|
|
|
environment:
|
2023-05-16 19:00:16 +08:00
|
|
|
# config-dependant vars
|
|
|
|
# TODO unify with netmaker-exporter
|
|
|
|
- PROMETHEUS_HOST=prometheus.${NM_DOMAIN}
|
|
|
|
- NETMAKER_METRICS_TARGET=netmaker-exporter.${NM_DOMAIN}
|
2022-10-04 12:21:58 +08:00
|
|
|
volumes:
|
|
|
|
- grafana_data:/var/lib/grafana
|
2022-09-21 06:11:58 +08:00
|
|
|
restart: always
|
|
|
|
links:
|
|
|
|
- prometheus
|
|
|
|
depends_on:
|
|
|
|
- prometheus
|
|
|
|
- netmaker
|
2023-05-16 19:00:16 +08:00
|
|
|
|
2022-09-21 06:11:58 +08:00
|
|
|
netmaker-exporter:
|
|
|
|
container_name: netmaker-exporter
|
|
|
|
image: gravitl/netmaker-exporter:latest
|
2023-05-16 19:00:16 +08:00
|
|
|
env_file: ./netmaker.env
|
|
|
|
environment:
|
|
|
|
# config-dependant vars
|
|
|
|
# TODO unify with grafana
|
|
|
|
- PROMETHEUS_HOST=https://prometheus.${NM_DOMAIN}
|
|
|
|
# The domain/host IP indicating the mq broker address
|
|
|
|
- BROKER_ENDPOINT=wss://broker.${NM_DOMAIN}
|
|
|
|
- API_PORT=${EXPORTER_API_PORT}
|
2022-09-21 06:11:58 +08:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- netmaker
|
2023-05-16 19:00:16 +08:00
|
|
|
|
2022-09-21 06:11:58 +08:00
|
|
|
volumes:
|
2023-05-16 19:00:16 +08:00
|
|
|
prometheus_data: { }
|
|
|
|
grafana_data: { }
|