-
Notifications
You must be signed in to change notification settings - Fork 2
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 interface for retrieving alerting config from charmed AlertManager #14
Conversation
This comment has been minimized.
This comment has been minimized.
086920f
to
689f5db
Compare
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.
Hey @relaxdiego - great job! Just a few comments to discuss.
Thanks for the review @exceptorr! Will address them now. |
3a780f5
to
634d3a6
Compare
This commit allows the charm to retrieve a configuration string from the alertmanager charm. The configuration string is a JSON string that this charm converts to a dict that is then inserted to another dict that ultimately gets serialized into a YAML-formatted prometheus config file. While this charm is agnostic to the contents of the JSON string, in AlertManager's current iteration, it uses the `kube_sd_configs` method so that Prometheus can quickly detect changes in the number of AlertManager pods without waiting for any Juju events.
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.
Thanks, looks much better now! A few comments before we can land this - please, see inline.
This commit allows the charm to retrieve a configuration string from the
alertmanager charm. The configuration string is a JSON string that this
charm converts to a dict that is then inserted to another dict that
ultimately gets serialized into a YAML-formatted prometheus config file.
While this charm is agnostic to the contents of the JSON string, in
AlertManager's current iteration, it uses the
kube_sd_configs
methodso that Prometheus can quickly detect changes in the number of
AlertManager pods without waiting for any Juju events.