mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-08-14 20:42:53 +02:00
「🏗️」 wip: prom added :D
This commit is contained in:
12
docker/monitoring/prometheus/config/rules.yml
Normal file
12
docker/monitoring/prometheus/config/rules.yml
Normal file
@ -0,0 +1,12 @@
|
||||
groups:
|
||||
- name: AllInstances
|
||||
rules:
|
||||
- alert: InstanceDown
|
||||
# Condition for alerting
|
||||
expr: up == 0
|
||||
for: 20s
|
||||
annotations:
|
||||
title: 'Instance {{ $labels.instance }} down'
|
||||
description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 20 seconds.'
|
||||
labels:
|
||||
severity: 'critical'
|
Reference in New Issue
Block a user