Give cadvisor a hostname based label

This commit is contained in:
Tobias Manske 2024-01-13 12:27:56 +01:00
parent 450b6c160d
commit 511239a6bb
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -60,6 +60,7 @@ services:
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: "{{ inventory_hostname | replace('.', '-') }}-cadvisor"
privileged: true
labels:
- "prometheus-scrape.enabled=true"