Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
cf44d02b
Unverified
Commit
cf44d02b
authored
3 years ago
by
Keshav Prasad
Committed by
GitHub
3 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: escape alert varaible in helm (#3171)
* fix: escape alert varaible in helm * fix: rename rule
parent
f02a9ccd
master
login-changes
loginRegisterBtn
prasath-release-5.1.0
release-5.1.0
release-5.1.0-api
release-5.1.0-apiuat
release-5.1.0-bulk-enrol-unenrol
release-5.1.0-uat
release-5.1.0-uatLatest
release-5.1.0-uatapi
release-5.1.0-upsmf-prod
release-uat-nginx
revert-5-login-changes
upstream/release-5.1.0-vdn
release-4.6.0
release-4.6.0_RC4
release-4.6.0_RC3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kubernetes/helm_charts/monitoring/alertrules/templates/opa_envoy_403_alerts.yaml
+2
-2
...monitoring/alertrules/templates/opa_envoy_403_alerts.yaml
with
2 additions
and
2 deletions
+2
-2
kubernetes/helm_charts/monitoring/alertrules/templates/opa_envoy_403_alerts.yaml
+
2
−
2
View file @
cf44d02b
...
...
@@ -5,7 +5,7 @@ metadata:
role
:
alert-rules
app
:
{{
.Values.prometheus_rule_selector_app
}}
release
:
{{
.Values.prometheus_rule_selector_release
}}
name
:
{{
.Values.fullnameOverride
}}
-
api-response-rule
s
name
:
{{
.Values.fullnameOverride
}}
-
opa-403-error
s
namespace
:
{{
.Values.namespace
}}
spec
:
groups
:
...
...
@@ -13,7 +13,7 @@ spec:
rules
:
-
alert
:
403_errors_spiking_due_to_opa
annotations
:
message
:
There is an upward trend in 403 API errors due to OPA for {{$labels.job}}
message
:
{{
`
'
There
is
an
upward
trend
in
403
API
errors
due
to
OPA
for
{{$labels.job}}
'
`
}}
expr
:
(sum(rate(envoy_cluster_upstream_rq{envoy_response_code="403",envoy_cluster_name="service"}[5m])) by(job, envoy_response_code) / ignoring(envoy_response_code) group_left sum(rate(envoy_cluster_upstream_rq_total{envoy_cluster_name="service"}[5m])) by(job)) >
0.05
for
:
5m
labels
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets