Give cadvisor a hostname based label
This commit is contained in:
parent
450b6c160d
commit
511239a6bb
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user