mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-14 11:37:31 +00:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
groups:
|
|
- name: promtail_alerts
|
|
rules:
|
|
- alert: PromtailRequestsErrors
|
|
annotations:
|
|
message: |
|
|
{{ $labels.job }} {{ $labels.route }} is experiencing {{ printf "%.2f" $value }}% errors.
|
|
expr: |
|
|
100 * sum(rate(promtail_request_duration_seconds_count{status_code=~"5..|failed"}[1m])) by (namespace, job, route, instance)
|
|
/
|
|
sum(rate(promtail_request_duration_seconds_count[1m])) by (namespace, job, route, instance)
|
|
> 10
|
|
for: 15m
|
|
labels:
|
|
severity: critical
|
|
- alert: PromtailRequestLatency
|
|
annotations:
|
|
message: |
|
|
{{ $labels.job }} {{ $labels.route }} is experiencing {{ printf "%.2f" $value }}s 99th percentile latency.
|
|
expr: |
|
|
job_status_code_namespace:promtail_request_duration_seconds:99quantile > 1
|
|
for: 15m
|
|
labels:
|
|
severity: critical
|
|
- alert: PromtailFileMissing
|
|
annotations:
|
|
message: |
|
|
{{ $labels.instance }} {{ $labels.job }} {{ $labels.path }} matches the glob but is not being tailed.
|
|
expr: |
|
|
promtail_file_bytes_total unless promtail_read_bytes_total
|
|
for: 15m
|
|
labels:
|
|
severity: critical
|