-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(makefile): compile promtail-mixin
- Loading branch information
Showing
4 changed files
with
766 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
groups: | ||
- name: promtail_alerts | ||
rules: | ||
- alert: PromtailRequestsErrors | ||
annotations: | ||
description: | | ||
{{ $labels.job }} {{ $labels.route }} is experiencing {{ printf "%.2f" $value }}% errors. | ||
summary: Promtail request error rate is high. | ||
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: | ||
description: | | ||
{{ $labels.job }} {{ $labels.route }} is experiencing {{ printf "%.2f" $value }}s 99th percentile latency. | ||
summary: Promtail request latency P99 is high. | ||
expr: | | ||
job_status_code_namespace:promtail_request_duration_seconds:99quantile > 1 | ||
for: 15m | ||
labels: | ||
severity: critical | ||
- alert: PromtailFileMissing | ||
annotations: | ||
description: | | ||
{{ $labels.instance }} {{ $labels.job }} {{ $labels.path }} matches the glob but is not being tailed. | ||
summary: Promtail cannot find a file it should be tailing. | ||
expr: | | ||
promtail_file_bytes_total unless promtail_read_bytes_total | ||
for: 15m | ||
labels: | ||
severity: warning |
Oops, something went wrong.