Fixed Prometheus and added bunches of alerts

This commit is contained in:
2023-11-17 16:50:39 +02:00
parent b875c663c9
commit 3d90e52a15
5 changed files with 242 additions and 70 deletions

View File

@@ -1,11 +1,11 @@
global:
scrape_interval: 15s
scrape_interval: 15s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: ['alertmanager:9093']
- static_configs:
- targets: ['alertmanager:9093']
rule_files:
- alerts.yml
@@ -13,11 +13,12 @@ scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['prometheus:9090']
- job_name: takahe
static_configs:
- targets: ['192.168.0.66:9100']
- targets: ['node-exporter:9100']
- job_name: cadvisor
scrape_interval: 5s
static_configs:
- targets:
- cadvisor:8080
- targets: ['cadvisor:8080']