First commit

This commit is contained in:
Florian RICHER 2022-10-25 13:34:44 +02:00
commit f3b9d45ca9
No known key found for this signature in database
GPG key ID: 6BF27BF8A1E71623
14 changed files with 1724 additions and 0 deletions

11
prometheus/alert.rules Normal file
View 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
prometheus/prometheus.yml Normal file
View 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']