je remets sur le git la version de prod1

This commit is contained in:
nom 2025-05-02 11:55:40 +02:00
parent 8d0caad3c7
commit b5aa7e9945

View File

@ -1,6 +1,7 @@
global: global:
scrape_interval: 15s scrape_interval: 60s
evaluation_interval: 15s evaluation_interval: 60s
scrape_timeout: 55s
rule_files: rule_files:
- 'alert.rules' - 'alert.rules'
@ -16,34 +17,86 @@ scrape_configs:
static_configs: static_configs:
- targets: ["prometheus:9090"] - targets: ["prometheus:9090"]
- job_name: cadvisor
scrape_interval: 30s - job_name: cadvisor-prod1
scheme: "https" scheme: "https"
static_configs: static_configs:
- targets: ["cadvisor-prod1.kaz.bzh:443"] - targets: ["cadvisor-prod1.kaz.bzh:443"]
labels: labels:
host: 'prod1' host: 'prod1'
- job_name: cadvisor-prod2
scheme: "https"
static_configs:
- targets: ["cadvisor-prod2.kaz.bzh:443"] - targets: ["cadvisor-prod2.kaz.bzh:443"]
labels: labels:
host: 'prod2' host: 'prod2'
- job_name: cadvisor-kazoulet
scheme: "https"
static_configs:
- targets: ["cadvisor-kazoulet.kaz.bzh:443"] - targets: ["cadvisor-kazoulet.kaz.bzh:443"]
labels: labels:
host: 'kazoulet' host: 'kazoulet'
- job_name: cadvisor-tykaz
scheme: "https"
static_configs:
- targets: ["cadvisor-tykaz.kaz.bzh:443"] - targets: ["cadvisor-tykaz.kaz.bzh:443"]
labels: labels:
host: 'tykaz' host: 'tykaz'
- job_name: cadvisor-kazguel
scheme: "https"
static_configs:
- targets: ["cadvisor-kazguel.kaz.bzh:443"] - targets: ["cadvisor-kazguel.kaz.bzh:443"]
labels: labels:
host: 'kazguel' host: 'kazguel'
- job_name: cadvisor-kazkouil
scheme: "https"
static_configs:
- targets: ["cadvisor.kazkouil.fr:443"] - targets: ["cadvisor.kazkouil.fr:443"]
labels: labels:
host: 'kazkouil' host: 'kazkouil'
- job_name: node-exporter - job_name: node-exporter-prod1
static_configs: 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: ["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'