Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
machine424 committed Jan 15, 2025
1 parent 8462cac commit d1d66f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions assets/cluster-monitoring-operator/prometheus-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ spec:
for: 15m
labels:
severity: warning
- alert: NarrowSelectors
- alert: PrometheusPossibleNarrowSelectors
annotations:
description: Queries to Prometheus {{$labels.namespace}}/{{$labels.pod}} could be too restrictive.
description: Queries or/and relabel configs on Prometheus {{$labels.namespace}}/{{$labels.pod}} could be too restrictive.
summary: |
Some queries with selectors on the values of the "le" label of classic histograms or/and the "quantile" label of summaries
Some queries or/and relabel configs with selectors on the values of the "le" label of classic histograms or/and the "quantile" label of summaries
may not take into account that values could also be floats.
expr: increase(prometheus_narrow_selectors_count{job=~"prometheus-k8s|prometheus-user-workload"}[5m]) > 0
for: 15m
Expand Down
6 changes: 3 additions & 3 deletions jsonnet/rules.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ function(params) {
},
{
expr: 'increase(prometheus_narrow_selectors_count{job=~"prometheus-k8s|prometheus-user-workload"}[5m]) > 0',
alert: 'NarrowSelectors',
alert: 'PrometheusPossibleNarrowSelectors',
'for': '15m',
annotations: {
description: 'Queries to Prometheus {{$labels.namespace}}/{{$labels.pod}} could be too restrictive.',
description: 'Queries or/and relabel configs on Prometheus {{$labels.namespace}}/{{$labels.pod}} could be too restrictive.',
summary: |||
Some queries with selectors on the values of the "le" label of classic histograms or/and the "quantile" label of summaries
Some queries or/and relabel configs with selectors on the values of the "le" label of classic histograms or/and the "quantile" label of summaries
may not take into account that values could also be floats.
|||,
},
Expand Down

0 comments on commit d1d66f8

Please sign in to comment.