vieter: enable metrics

master
Jef Roosens 2023-01-03 22:10:21 +01:00
parent 7bc08a6633
commit ba63c08305
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ services:
- 'node.labels.class == admin'
configs:
- source: prometheus_v7
- source: prometheus_v8
target: /etc/prometheus/prometheus.yml
networks:
- 'default'
@ -82,7 +82,7 @@ services:
- '/:/rootfs:ro'
configs:
prometheus_v7:
prometheus_v8:
external: true
networks:

View File

@ -25,8 +25,10 @@ services:
# 1AM UTC+2
- 'VIETER_GLOBAL_SCHEDULE=0 23'
- 'VIETER_MAX_LOG_AGE=120'
- 'VIETER_COLLECT_METRICS=1'
networks:
- 'public'
- 'monitoring'
secrets:
- vieter_api_key
volumes:
@ -59,6 +61,8 @@ services:
networks:
public:
external: true
monitoring:
external: true
secrets:
vieter_api_key: