Give cadvisor a hostname based label
This commit is contained in:
parent
450b6c160d
commit
511239a6bb
@ -60,6 +60,7 @@ services:
|
|||||||
|
|
||||||
cadvisor:
|
cadvisor:
|
||||||
image: gcr.io/cadvisor/cadvisor:latest
|
image: gcr.io/cadvisor/cadvisor:latest
|
||||||
|
container_name: "{{ inventory_hostname | replace('.', '-') }}-cadvisor"
|
||||||
privileged: true
|
privileged: true
|
||||||
labels:
|
labels:
|
||||||
- "prometheus-scrape.enabled=true"
|
- "prometheus-scrape.enabled=true"
|
||||||
|
Loading…
Reference in New Issue
Block a user