Skip to content

Commit

Permalink
fix(istio-alerts): revert to native raw metrics (#314)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Wise <[email protected]>
  • Loading branch information
diranged and diranged authored Jun 13, 2024
1 parent 919760f commit 2b16721
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/istio-alerts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: istio-alerts
description: A Helm chart that provisions a series of alerts for istio VirtualServices
type: application
version: 0.5.1
version: 0.5.2
maintainers:
- name: diranged
email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion charts/istio-alerts/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# istio-alerts

![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart that provisions a series of alerts for istio VirtualServices

Expand Down
8 changes: 4 additions & 4 deletions charts/istio-alerts/templates/service-prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ spec:
in namespace {{`{{$labels.namespace}}`}}.
expr: >
sum by ({{- $http5XXMonitorGroupingLabelString -}}) (
istio_requests_increase5m{
rate(istio_requests_total{
response_code=~"5.*",
{{- $destinationServiceSelectorForIstioMetrics -}}
}
}[5m])
)
/
sum by ({{- $http5XXMonitorGroupingLabelString -}}) (
istio_requests_increase5m{
rate(istio_requests_total{
{{- $destinationServiceSelectorForIstioMetrics -}}
}
}[5m])
)
> {{ .threshold }}
for: {{ .for }}
Expand Down

0 comments on commit 2b16721

Please sign in to comment.