[add] track caddy
This commit is contained in:
parent
ca4a4b3499
commit
b4613e4e64
3 changed files with 2 additions and 1 deletions
6
prometheus/prometheus/alert.yml
Normal file
6
prometheus/prometheus/alert.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
groups:
|
||||
- name: DemoAlerts
|
||||
rules:
|
||||
- alert: InstanceDown
|
||||
expr: up{job="services"} < 1
|
||||
for: 5m
|
||||
16
prometheus/prometheus/prometheus.yml
Normal file
16
prometheus/prometheus/prometheus.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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'
|
||||
- 'caddy-saffron:2015'
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue