Commit 1d48131b authored by Andrew Newdigate's avatar Andrew Newdigate

Remove parameters from alertname in preparation for error alerts

sharing the same name.

Following this practice makes the alertmanager inhibition rules simple
to write. Since it's very important to get inhibition rules right,
it's much better to keep them simple.
parent 1ebdb83d
groups: groups:
- name: service_availability.rules - name: service_availability.rules
rules: rules:
# Availability below 2 sigma # Availability below 3 sigma
- alert: service_availability_out_of_bounds_lower_3sigma_5m - alert: service_availability_out_of_bounds_lower_5m
expr: | expr: |
gitlab_service_availability:ratio gitlab_service_availability:ratio
< <
...@@ -31,8 +31,8 @@ groups: ...@@ -31,8 +31,8 @@ groups:
link1_title: "Definition" link1_title: "Definition"
link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-availability.md" link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-availability.md"
# Operation rate above 2 sigma # Operation rate above 3 sigma
- alert: service_ops_out_of_bounds_upper_3sigma_5m - alert: service_availability_out_of_bounds_lower_5m
expr: | expr: |
gitlab_service_ops:rate gitlab_service_ops:rate
> >
...@@ -62,8 +62,8 @@ groups: ...@@ -62,8 +62,8 @@ groups:
link1_title: "Definition" link1_title: "Definition"
link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-ops-rate.md" link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-ops-rate.md"
# Operation rate below 2 sigma # Operation rate below 3 sigma
- alert: service_ops_out_of_bounds_lower_3sigma_5m - alert: service_ops_out_of_bounds_lower_5m
expr: | expr: |
gitlab_service_ops:rate gitlab_service_ops:rate
< <
...@@ -92,8 +92,8 @@ groups: ...@@ -92,8 +92,8 @@ groups:
link1_title: "Definition" link1_title: "Definition"
link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-ops-rate.md" link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-ops-rate.md"
# Apdex lower than 2 sigma # Apdex lower than 3 sigma
- alert: service_apdex_out_of_bounds_lower_3sigma_5m - alert: service_ops_out_of_bounds_lower_5m
expr: | expr: |
gitlab_service_apdex:ratio gitlab_service_apdex:ratio
< <
...@@ -123,8 +123,8 @@ groups: ...@@ -123,8 +123,8 @@ groups:
link1_title: "Definition" link1_title: "Definition"
link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-apdex.md" link1_url: "https://gitlab.com/gitlab-com/runbooks/blob/master/troubleshooting/definition-service-apdex.md"
# Error rate exceeds 2 sigma # Error rate exceeds 3 sigma
- alert: service_errors_out_of_bounds_upper_3sigma_5m - alert: service_errors_out_of_bounds_upper_5m
expr: | expr: |
gitlab_service_errors:rate gitlab_service_errors:rate
> >
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment