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 silence logging option #2536

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

m-masataka
Copy link
Contributor

Past silences are really important to postmortem our alert management operations.
We need to get "when" and "what kind of" create/edit/delete silences.
So this PR added optional function that logging silence change.

Signed-off-by: m-masataka <[email protected]>
Signed-off-by: m-masataka <[email protected]>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea

@@ -186,6 +186,7 @@ func run() int {
dataDir = kingpin.Flag("storage.path", "Base path for data storage.").Default("data/").String()
retention = kingpin.Flag("data.retention", "How long to keep data for.").Default("120h").Duration()
alertGCInterval = kingpin.Flag("alerts.gc-interval", "Interval between alert GC.").Default("30m").Duration()
silenceLogging = kingpin.Flag("silences.logging", "Enable logging silences. If it is enabled, the status change of silence will be logged").Bool()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should match the existing log-related flags like --log.level, so how about "log.silences"?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in #4163

@roidelapluie
Copy link
Member

Can we have a distinction between the silences gossipped and the ones created in the current instance?

@stale stale bot added the stale label Aug 22, 2021
This was referenced Dec 17, 2024
@anarcat
Copy link

anarcat commented Dec 17, 2024

Can we have a distinction between the silences gossipped and the ones created in the current instance?

could you expand on this? like tag them with a string of some sort, or disable logging for one or the other?

so far I haven't adressed this in #4163 but if it's the former, that should be fairly simple to do.

@anarcat
Copy link

anarcat commented Dec 17, 2024

i've also fixed conflicts in #4163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants