Skip to content

Commit b7b4ed5

Browse files
authored
ROX-34459: fix scanner restart noise (#339)
* fix scanner restart noise * pinning grafana linter, because go install broke
1 parent ecc4e47 commit b7b4ed5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

resources/prometheus/prometheus-rules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-managed-service-runbooks/blob/master/sops/dp-003-rhacs-instance-unavailable.md"
7373
- alert: RHACSScannerContainerFrequentlyRestarting
7474
expr: |
75-
increase(kube_pod_container_status_restarts_total{pod=~"scanner.*", container=~"scanner|db|matcher|indexer"}[30m]) > 4
75+
changes(kube_pod_container_status_restarts_total{pod=~"scanner.*", container=~"scanner|db|matcher|indexer"}[30m]) > 4
7676
labels:
7777
severity: warning
7878
annotations:

scripts/lint-grafana.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
set -eu
44

55
if ! [ -x "$(command -v dashboard-lint)" ]; then
6-
go install github.com/grafana/dashboard-linter@latest
6+
# using this specific commit as linter installation via go install broke
7+
# because grafana started to use replace directive in their go.mod which does not support go install anymore
8+
go install github.com/grafana/dashboard-linter@a088406
79
fi
810

911
! [ -x "$(command -v yq)" ] && echo 'yq not installed, the hook requires it.' && exit 1

0 commit comments

Comments
 (0)