diff --git a/dockers/grafana/prometheus/prometheus.yml b/dockers/grafana/prometheus/prometheus.yml index 2916565..00ff760 100644 --- a/dockers/grafana/prometheus/prometheus.yml +++ b/dockers/grafana/prometheus/prometheus.yml @@ -1,6 +1,7 @@ global: - scrape_interval: 15s - evaluation_interval: 15s + scrape_interval: 60s + evaluation_interval: 60s + scrape_timeout: 55s rule_files: - 'alert.rules' @@ -16,34 +17,86 @@ scrape_configs: static_configs: - targets: ["prometheus:9090"] - - job_name: cadvisor - scrape_interval: 30s + + - job_name: cadvisor-prod1 scheme: "https" static_configs: - targets: ["cadvisor-prod1.kaz.bzh:443"] labels: host: 'prod1' - + + - job_name: cadvisor-prod2 + scheme: "https" + static_configs: - targets: ["cadvisor-prod2.kaz.bzh:443"] labels: host: 'prod2' - + + - job_name: cadvisor-kazoulet + scheme: "https" + static_configs: - targets: ["cadvisor-kazoulet.kaz.bzh:443"] labels: host: 'kazoulet' - + + - job_name: cadvisor-tykaz + scheme: "https" + static_configs: - targets: ["cadvisor-tykaz.kaz.bzh:443"] labels: host: 'tykaz' - + + - job_name: cadvisor-kazguel + scheme: "https" + static_configs: - targets: ["cadvisor-kazguel.kaz.bzh:443"] labels: host: 'kazguel' - + + - job_name: cadvisor-kazkouil + scheme: "https" + static_configs: - targets: ["cadvisor.kazkouil.fr:443"] labels: host: 'kazkouil' - - - job_name: node-exporter + + - job_name: node-exporter-prod1 static_configs: - - targets: ["prod1.kaz.bzh:9100","prod2.kaz.bzh:9100","kazoulet.kaz.bzh:9100","tykaz.kaz.bzh:9100","kazguel.kaz.bzh:9100","kazkouil.fr:9100"] \ No newline at end of file +# - targets: ["prod1.kaz.bzh:9100","prod2.kaz.bzh:9100","kazoulet.kaz.bzh:9100","tykaz.kaz.bzh:9100","kazguel.kaz.bzh:9100","kazkouil.fr:9100"] + + - targets: ["prod1.kaz.bzh:9100"] + labels: + host: 'prod1' + + + - job_name: node-exporter-prod2 + static_configs: +# - targets: ["prod1.kaz.bzh:9100","prod2.kaz.bzh:9100","kazoulet.kaz.bzh:9100","tykaz.kaz.bzh:9100","kazguel.kaz.bzh:9100","kazkouil.fr:9100"] + + - targets: ["prod2.kaz.bzh:9100"] + labels: + host: 'prod2' + + - job_name: node-exporter-kazoulet + static_configs: + - targets: ["kazoulet.kaz.bzh:9100"] + labels: + host: 'kazoulet' + + - job_name: node-exporter-tykaz + static_configs: + - targets: ["tykaz.kaz.bzh:9100"] + labels: + host: 'tykaz' + + - job_name: node-exporter-kazguel + static_configs: + - targets: ["kazguel.kaz.bzh:9100"] + labels: + host: 'kazguel' + + - job_name: node-exporter-kazkouil + static_configs: + - targets: ["kazkouil.fr:9100"] + labels: + host: 'kazkouil'