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

View File

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