4d18bda2e1
* First pass solution * Refactor solution * Add test coverage, update tests * Fix behaviour for multiple labels, add test for this * Add recordin rules to devenv prometheus * Update devenv/prometheus2 instead of devenv/prometheus * Add newlines * Fix label matching if labels include comma, add test coverage * Refactor * Refactor, simplify
12 lines
239 B
YAML
12 lines
239 B
YAML
groups:
|
|
- name: ALERT
|
|
rules:
|
|
- alert: AppCrash
|
|
expr: process_open_fds > 0
|
|
for: 15s
|
|
labels:
|
|
severity: critical
|
|
annotations:
|
|
summary: Number of open fds > 0
|
|
description: Just testing
|