-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable alert severity overrides #617
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Saswata Mukherjee <[email protected]>
Very interesting and happy to add something along those lines. Currently, I'm not sure about the wording and will give this another look. |
Looking at this again, I wonder should we at least make all four alerts configurable in terms of setting custom severity label values? I can see that make sense overall.
|
Does something like the config below seem better? apiVersion: pyrra.dev/v1alpha1
kind: ServiceLevelObjective
metadata:
name: custom-severity
namespace: monitoring
labels:
prometheus: k8s
role: alert-rules
spec:
target: 99
window: 2w
indicator:
ratio:
errors:
metric: prometheus_operator_reconcile_errors_total
total:
metric: prometheus_operator_reconcile_operations_total
alerting:
absentSeverity: high
windowBurnRateSeverity: [high, high, low, low] This way user can override the
Yup these are great defaults and work well. This option just addresses the cases which deviate from this. 🙂 |
@metalmatze should I update this PR with the config above then? |
Sorry for dropping the ball on this one... How about something similar to this? apiVersion: pyrra.dev/v1alpha1
kind: ServiceLevelObjective
metadata:
name: custom-severity
namespace: monitoring
labels:
prometheus: k8s
role: alert-rules
spec:
target: "99"
window: 2w
indicator:
ratio:
errors:
metric: prometheus_operator_reconcile_errors_total
total:
metric: prometheus_operator_reconcile_operations_total
alerting:
disabled: false
name: ErrorBudgetBurn
severities:
absent: high
level1: critical
level2: error
level3: warning
level4: info I think putting them into a map of some sorts makes it more ergonomic to configure? Then again, I'm not sure about the |
This would be a great addition! How can we move this forward? |
This PR extends the
Alerting
configuration to enable alert severity label value overrides.As Pyrra generates alerts of two severities,
critical
andwarning
, there are cases where users might want to change these values to something else due to alert routing/pager config in different envs (for eg, notcritical
buthigh
for stage).This allows setting
highSeverity
andlowSeverity
for alerts, which default tocritical
andwarning
.Wdyt? 🙂