-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add rule for Pod (un)readiness and alarm to Slack #7
Conversation
…get 1 like almost always, but we should be sure to list all of them anyways)
text: >- | ||
{{ range .Alerts }} | ||
*Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}` | ||
*Description:* {{ .Annotations.description }} |
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.
It looks like Line 25 has an extra space, as it does in the article you and I both copy pasted it from. 😉
{{ range .Alerts }} | ||
*Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}` | ||
*Description:* {{ .Annotations.description }} | ||
*Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:> *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:> |
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.
@solsson Oooo ... nice idea! Are you using SkeltonThatcher's run book template? Do you have any example ones you can share?
SECRET=alertmanager-main | ||
|
||
kctl create secret generic $SECRET --from-file $DIR/alertmanager.yaml --dry-run -o=yaml \ | ||
| kctl replace secret $SECRET -f - |
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.
Does replace work if the secret does not already exist?
Only
deployment
so far,statefulset
is TODO, but this PR is primarily an example for rules management and alertmanager config.