Hey folks! Looking for some feedback on a potential solution for a problem I would like to solve:
I would like to capture all the alerts being sent via alertmanager via the logger into my logging system so that I can do some analytics on alerts and frequency after the fact.
Currently, the debug level logging in the dispatch.go for alerts will log the alert as it's processed [1]
However the Stringer method for the Alert type only includes the alert name and the fingerprint of the labels [2]. I really need the printed labels for the log line to be useful for the purpose I'm seeking.
I have 2 thoughts:
- would the project be receptive to changing this Stringer method to also include the full label list?
- as an alternative would something like a stdout notifier be considered for inclusion in the alertmanager?
For the second case I'm thinking a very simple notifier which just prints the alert to stdout, perhaps with some basic options for controlling the format.
Thoughts?
Thanks,
Ed