-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: m-masataka <[email protected]>
Signed-off-by: m-masataka <[email protected]>
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 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() |
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.
This should match the existing log-related flags like --log.level
, so how about "log.silences"
?
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.
done in #4163
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. |
i've also fixed conflicts in #4163 |
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.