Skip to content

Commit 23edd45

Browse files
jhoblittfbegyn
authored andcommitted
(fleet/blackbox-exporter) add BlackboxExporterModuleUnknown alert
1 parent 9cd5481 commit 23edd45

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

fleet/lib/blackbox-exporter/values.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ serviceMonitor:
2828
interval: 60s
2929
module: http_2xx
3030

31-
# TODO: Error: UPGRADE FAILED: release blackbox-exporter failed, and has been
32-
# rolled back due to atomic being set: failed to create resource: admission
33-
# webhook "prometheusrulemutate.monitoring.coreos.com" denied the request: Cannot
34-
# unmarshal rules from spec
35-
# This error happens due to the fact that the PrometheusRules from the blackbox
36-
# exporter chart seem to be uncompatible with the new CRD's from the prometheus
37-
# operator being deployed. It would be good to have these deployed as well but
38-
# currently we're temporary disabling them.
3931
prometheusRule:
40-
enabled: false
41-
labels:
42-
lsst.io/discover: "true"
32+
enabled: true
33+
additionalLabels:
34+
lsst.io/rule: "true"
35+
rules:
36+
- alert: BlackboxExporterModuleUnknown
37+
annotations:
38+
description: '{{ $labels.instance }} - {{ $labels.job }} has attemped to use {{ $value | humanize }} unknown module(s)'
39+
expr: blackbox_module_unknown_total > 0
40+
for: 1m
41+
labels:
42+
severity: warning
4343

4444
extraConfigmapMounts: []
4545
extraSecretMounts: []

0 commit comments

Comments
 (0)