Skip to content

Commit

Permalink
Fix promtail requests error alert (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Sep 3, 2024
1 parent 7ef7a32 commit 655403f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

Fix `PromtailRequestsErrors` alerts as promtail retries after some backoff so actual errors are hidden.

## [4.13.0] - 2024-09-03

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
description: This alert checks if that the amount of failed requests is below 10% for promtail
opsrecipe: promtail/
expr: |
100 * (sum(rate(promtail_request_duration_seconds_count{status_code!~"2.."}[2m])) by (cluster_id, installation, provider, pipeline, namespace, job, route, instance) / sum(rate(promtail_request_duration_seconds_count[2m])) by (cluster_id, installation, provider, pipeline, namespace, job, route, instance)) > 10
100 * (sum(rate(promtail_request_duration_seconds_count{status_code!~"2.."}[5m])) by (cluster_id, installation, provider, pipeline, namespace, job, route, instance) / sum(rate(promtail_request_duration_seconds_count[5m])) by (cluster_id, installation, provider, pipeline, namespace, job, route, instance)) > 10
for: 15m
labels:
area: platform
Expand Down

0 comments on commit 655403f

Please sign in to comment.