Add protonmail + cloud + fix prometheus
This commit is contained in:
parent
525c6ed2a4
commit
427838c903
13 changed files with 106 additions and 2 deletions
11
roles/traefik/files/prometheus/alert.rules
Normal file
11
roles/traefik/files/prometheus/alert.rules
Normal file
|
@ -0,0 +1,11 @@
|
|||
groups:
|
||||
- name: traefik
|
||||
rules:
|
||||
- alert: service_down
|
||||
expr: up == 0
|
||||
for: 2m
|
||||
labels:
|
||||
severity: page
|
||||
annotations:
|
||||
summary: "Instance {{ $labels.instance }} down"
|
||||
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes"
|
12
roles/traefik/files/prometheus/prometheus.yml
Normal file
12
roles/traefik/files/prometheus/prometheus.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
rule_files:
|
||||
- 'alert.rules'
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'traefik'
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['traefik:8080']
|
Loading…
Add table
Add a link
Reference in a new issue