From 76fb2f2e2cb16093cc1639d0dfc4cb87a368ef2d Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Mon, 28 Nov 2016 12:30:56 -0800 Subject: [PATCH] Add prometheus files (fixes #58) --- prom/Dockerfile | 3 +++ prom/prometheus.yml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 prom/Dockerfile create mode 100644 prom/prometheus.yml diff --git a/prom/Dockerfile b/prom/Dockerfile new file mode 100644 index 00000000..789cef04 --- /dev/null +++ b/prom/Dockerfile @@ -0,0 +1,3 @@ +FROM prom/prometheus +COPY prometheus.yml /etc/prometheus/prometheus.yml + diff --git a/prom/prometheus.yml b/prom/prometheus.yml new file mode 100644 index 00000000..4eadc2af --- /dev/null +++ b/prom/prometheus.yml @@ -0,0 +1,17 @@ +global: + scrape_interval: 1s +scrape_configs: + - job_name: 'prometheus' + static_configs: + - targets: ['localhost:9090'] + - job_name: 'node' + dns_sd_configs: + - names: ['tasks.node'] + type: 'A' + port: 9100 + - job_name: 'cadvisor' + dns_sd_configs: + - names: ['tasks.cadvisor'] + type: 'A' + port: 8080 +