[add] prometheus

This commit is contained in:
Andy Bunce 2022-04-02 17:56:21 +01:00
parent a7ab015384
commit f92b76f266
4 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,6 @@
groups:
- name: DemoAlerts
rules:
- alert: InstanceDown
expr: up{job="services"} < 1
for: 5m

View file

@ -0,0 +1,15 @@
global:
scrape_interval: 30s
scrape_timeout: 10s
rule_files:
- alert.yml
scrape_configs:
- job_name: services
metrics_path: /metrics
static_configs:
- targets:
- 'prometheus:9090'
- 'idonotexists:564'