Skip to content

Commit 561a1e8

Browse files
machine424openshift-cherrypick-robot
authored andcommitted
chore(alerts): adjust PrometheusPossibleNarrowSelectors description and add link to to-be-added runbook
1 parent e4a04ee commit 561a1e8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

assets/cluster-monitoring-operator/prometheus-rule.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ spec:
3333
- alert: PrometheusPossibleNarrowSelectors
3434
annotations:
3535
description: Queries or/and relabel configs on Prometheus/Thanos {{$labels.namespace}}/{{$labels.pod}} could be too restrictive.
36+
runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/PrometheusPossibleNarrowSelectors.md
3637
summary: |
3738
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
38-
may not take into account that values could also be floats, they may need to be adjusted. If assistance is needed, please let us know at https://issues.redhat.com/browse/MON-4129.
39+
may not take into account that values could also be floats, they may need to be adjusted.
3940
expr: increase(prometheus_narrow_selectors_count{job=~"prometheus-k8s|prometheus-user-workload|thanos-querier|thanos-ruler"}[5m]) > 0
4041
for: 15m
4142
labels:

jsonnet/rules.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function(params) {
3535
description: 'Queries or/and relabel configs on Prometheus/Thanos {{$labels.namespace}}/{{$labels.pod}} could be too restrictive.',
3636
summary: |||
3737
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
38-
may not take into account that values could also be floats, they may need to be adjusted. If assistance is needed, please let us know at https://issues.redhat.com/browse/MON-4129.
38+
may not take into account that values could also be floats, they may need to be adjusted.
3939
|||,
4040
},
4141
labels: {

jsonnet/utils/sanitize-rules.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ local includeRunbooks = {
495495
NodeClockNotSynchronising: openShiftRunbookCMO('NodeClockNotSynchronising.md'),
496496
PrometheusOperatorRejectedResources: openShiftRunbookCMO('PrometheusOperatorRejectedResources.md'),
497497
PrometheusDuplicateTimestamps: openShiftRunbookCMO('PrometheusDuplicateTimestamps.md'),
498+
PrometheusPossibleNarrowSelectors: openShiftRunbookCMO('PrometheusPossibleNarrowSelectors.md'),
498499
PrometheusRuleFailures: openShiftRunbookCMO('PrometheusRuleFailures.md'),
499500
PrometheusRemoteStorageFailures: openShiftRunbookCMO('PrometheusRemoteStorageFailures.md'),
500501
PrometheusScrapeBodySizeLimitHit: openShiftRunbookCMO('PrometheusScrapeBodySizeLimitHit.md'),

0 commit comments

Comments
 (0)