Skip to content

Commit

Permalink
Tune analysis template
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 committed Nov 6, 2023
1 parent 232edcd commit 4a4e56e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ spec:
args:
- name: query
# Note encoded so it can be used as a query parameter, unencode:
# irate(haproxy_backend_http_responses_total{exported_namespace='rollouts-demo-prod',route=~'preview',code='5xx'}[1m])>10 or on() vector(0)
value: irate(haproxy_backend_http_responses_total%7Bexported_namespace='user%USER%-prod',route=~'preview',code='5xx'%7D%5B1m%5D)%3E10%20or%20on()%20vector(0)
# irate(haproxy_backend_http_responses_total{exported_namespace='rollouts-demo-prod',route=~'preview',code='5xx'}[1m])>7 or on() vector(0)
value: irate(haproxy_backend_http_responses_total%7Bexported_namespace='user%USER%-prod',route=~'preview',code='5xx'%7D%5B1m%5D)%3E7%20or%20on()%20vector(0)
- name: route-url
value: preview-user%USER%-prod.%SUB_DOMAIN%
templates:
Expand Down

0 comments on commit 4a4e56e

Please sign in to comment.