-
Notifications
You must be signed in to change notification settings - Fork 73
WIP [main] Implement alerting #769
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
base: main
Are you sure you want to change the base?
Conversation
namespace: {{ .Release.Namespace }} | ||
spec: | ||
groups: | ||
- name: backup-restore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to support interval
or limit
?
charts/rancher-backup/values.yaml
Outdated
## Define custom alerting rules here. | ||
## The "BackupFailed" alert is included by default when .Values.monitoring.alerts.enabled is set to true and rancher-monitoring is installed. | ||
alertingRules: | ||
- alert: BackupFailed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
Only thing I'm wondering about is, "are there any alerts that BRO should provide by default that cannot be disabled". In other words, are there any features of this new monitoring/alerting area of BRO that (when enabled) are required? I guess this thought goes just as much for these alerting rules as it does for any metrics collection things too - since I could imagine this factor relates more to dashboards than alerts TBH. 🤔
charts/rancher-backup/values.yaml
Outdated
|
||
## Define custom alerting rules here. | ||
## The "BackupFailed" alert is included by default when .Values.monitoring.alerts.enabled is set to true and rancher-monitoring is installed. | ||
alertingRules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also suggest putting this default alert rule definition in helm template in something like : templates/default-alerting-rules.yaml
behind a template flag like .Values.useDefaultAlerts
or something and the current way it works could be behind something like .Values.additionalRules
Edit: if we do put the default alerting rules behind that flag, make sure to pass in some form : .defaultAlerts.AdditionalLabels
to the alerting rule, since AlertManager uses label matchers to send stuff to specific remote integrations, so users will want to pass in their own labels
cbc9ab3
to
309f039
Compare
pkg/monitoring/metrics.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's cleanup some metric name best practices :
- https://prometheus.io/docs/concepts/escaping_schemes/
- https://prometheus.io/docs/practices/naming/
- https://prometheus.io/docs/practices/instrumentation/
Some best practices for rules/alerting:
cd097df
to
4294661
Compare
Issue: #672