Skip to content

Commit

Permalink
Fix revert metric name regression (#2005)
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
kakkoyun authored and GiedriusS committed Jan 21, 2020
1 parent 698c7a9 commit 7d16852
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/alerts/alerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ rules:
message: Thanos Querys {{$labels.job}} have {{ $value }} of failing DNS queries.
expr: |
(
sum by (job) (rate(thanos_query_store_apis_dns_failures_total{job=~"thanos-querier.*"}[5m]))
sum by (job) (rate(thanos_querier_store_apis_dns_failures_total{job=~"thanos-querier.*"}[5m]))
/
sum by (job) (rate(thanos_query_store_apis_dns_lookups_total{job=~"thanos-querier.*"}[5m]))
sum by (job) (rate(thanos_querier_store_apis_dns_lookups_total{job=~"thanos-querier.*"}[5m]))
> 1
)
for: 15m
Expand Down
4 changes: 2 additions & 2 deletions examples/alerts/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ groups:
message: Thanos Querys {{$labels.job}} have {{ $value }} of failing DNS queries.
expr: |
(
sum by (job) (rate(thanos_query_store_apis_dns_failures_total{job=~"thanos-querier.*"}[5m]))
sum by (job) (rate(thanos_querier_store_apis_dns_failures_total{job=~"thanos-querier.*"}[5m]))
/
sum by (job) (rate(thanos_query_store_apis_dns_lookups_total{job=~"thanos-querier.*"}[5m]))
sum by (job) (rate(thanos_querier_store_apis_dns_lookups_total{job=~"thanos-querier.*"}[5m]))
> 1
)
for: 15m
Expand Down
4 changes: 2 additions & 2 deletions mixin/thanos/alerts/querier.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
},
expr: |||
(
sum by (job) (rate(thanos_query_store_apis_dns_failures_total{%(selector)s}[5m]))
sum by (job) (rate(thanos_querier_store_apis_dns_failures_total{%(selector)s}[5m]))
/
sum by (job) (rate(thanos_query_store_apis_dns_lookups_total{%(selector)s}[5m]))
sum by (job) (rate(thanos_querier_store_apis_dns_lookups_total{%(selector)s}[5m]))
> 1
)
||| % thanos.querier,
Expand Down

0 comments on commit 7d16852

Please sign in to comment.