Commit d4724c3c authored by root's avatar root

ajout liaison avec l'alertmanager et une regle d'overcommit memoire pour valider

parent bdc7ef38
Pipeline #2876 passed with stages
in 10 minutes and 59 seconds
......@@ -2,10 +2,14 @@ global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
rule_files:
- '/etc/prometheus/rules/*'
alerting:
alertmanagers:
- static_configs:
- targets: []
- targets: ['alertmanager:9093']
scheme: http
timeout: 10s
api_version: v1
......@@ -25,7 +29,7 @@ scrape_configs:
honor_timestamps: true
params:
token:
- token_a_remplacer
- letokensecret
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /-/metrics
......@@ -48,14 +52,14 @@ scrape_configs:
# scheme defaults to 'http'.
static_configs:
- targets:
- '192.168.0.12:9393'
- '192.168.0.12:9323'
- '192.168.122.69:9323'
- '192.168.122.30:9323'
- job_name: cadvisor infra
- job_name: cadvisor
static_configs:
- targets:
- '192.168.0.12:9200'
- '192.168.122.69:9200'
- '192.168.122.30:9323'
\ No newline at end of file
- '192.168.122.30:9200'
groups:
- name: memoire
rules:
- alert: overcommit
expr: node_memory_Committed_AS_bytes / (node_memory_MemTotal_bytes + node_memory_SwapTotal_bytes) > 0.8
for: 10m
labels:
severity: page
annotations:
summary: surconsommation memoire
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment