From 40fdf4f8e326f2575b3398fbbfbae5417f395a28 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 29 Jun 2022 09:01:31 +0200 Subject: [PATCH] Add cadvisor to collect docker metrics --- prometheus.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prometheus.yml b/prometheus.yml index 42d6ce3..a8e0c85 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -1,12 +1,12 @@ global: scrape_interval: 10s external_labels: - monitor: 'cs-home-monitor' + monitor: cs-home-monitor scrape_configs: - - job_name: 'prometheus' + - job_name: prometheus static_configs: - targets: ['prometheus.lan'] - - job_name: 'docker' + - job_name: cadvisor static_configs: - - targets: ['localhost:9323'] + - targets: ['cadvisor.lan']