Skip to content
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

Closed
wants to merge 11 commits into from

Conversation

solsson
Copy link
Contributor

@solsson solsson commented Nov 9, 2017

Only deployment so far, statefulset is TODO, but this PR is primarily an example for rules management and alertmanager config.

text: >-
{{ range .Alerts }}
*Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}`
*Description:* {{ .Annotations.description }}

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:>
Copy link

@StevenACoffman StevenACoffman Jun 3, 2018

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 -

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?

@solsson solsson closed this May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants