Skip to content

Commit

Permalink
Workaround for PrometheusRuleFailures alert #D2IQ-65026 (#489)
Browse files Browse the repository at this point in the history
* Deleted status_class_5xx for rate3d

* Changed the chart version to 8.7.4

Co-authored-by: Ashot <[email protected]>
Co-authored-by: Alejandro Escobar <[email protected]>
  • Loading branch information
alejandroEsc and aayvazyan authored Mar 5, 2020
1 parent c1cb317 commit 9fe2a36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion staging/prometheus-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sources:
- https://github.com/coreos/kube-prometheus
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 8.7.3
version: 8.7.4
appVersion: 0.35.0
tillerVersion: ">=2.12.0"
home: https://github.com/coreos/prometheus-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ spec:
and
status_class_5xx:apiserver_request_total:ratio_rate2h{job="apiserver"} > (3*0.010000)
)
or
(
status_class_5xx:apiserver_request_total:ratio_rate3d{job="apiserver"} > (0.010000)
and
status_class_5xx:apiserver_request_total:ratio_rate6h{job="apiserver"} > (0.010000)
)
labels:
job: apiserver
severity: warning
Expand Down Expand Up @@ -112,15 +106,6 @@ spec:
labels:
job: apiserver
record: status_class:apiserver_request_total:rate1d
- expr: |-
sum by (status_class) (
label_replace(
rate(apiserver_request_total{job="apiserver"}[3d]
), "status_class", "${1}xx", "code", "([0-9])..")
)
labels:
job: apiserver
record: status_class:apiserver_request_total:rate3d
- expr: |-
sum(status_class:apiserver_request_total:rate5m{job="apiserver",status_class="5xx"})
/
Expand Down Expand Up @@ -163,11 +148,4 @@ spec:
labels:
job: apiserver
record: status_class_5xx:apiserver_request_total:ratio_rate1d
- expr: |-
sum(status_class:apiserver_request_total:rate3d{job="apiserver",status_class="5xx"})
/
sum(status_class:apiserver_request_total:rate3d{job="apiserver"})
labels:
job: apiserver
record: status_class_5xx:apiserver_request_total:ratio_rate3d
{{- end }}

0 comments on commit 9fe2a36

Please sign in to comment.