Skip to content

Commit

Permalink
Fix revert metric name regression (#2005) (#2019)
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <[email protected]>
Signed-off-by: Giedrius Statkevičius <[email protected]>

Co-authored-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
GiedriusS and kakkoyun authored Jan 21, 2020
1 parent b1abfeb commit dbfe6f0
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 @@ -308,9 +308,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 dbfe6f0

Please sign in to comment.