grafana-prometheus-alertmanager-datasource
grafana-prometheus-alertmanager-datasource copied to clipboard
[Solution Provided] Summarization by Alert State
I've made a few changes for a customer and would like to offer them back to the core project. Could I get some feedback on the below?
In summary:
Added the ability to show an additional column with the state of each alert (active, suppressed or inhibited).
Added a summary display mode, which shows a count of alerts in each state (works better with the multistat panel).
Added the ability to toggle between full (original) and summary display modes.
In detail:
Added the ability to show an additional column with the state of each alert (active, suppressed or inhibited).
Added a summary display mode, which shows a count of alerts in each state (works better with the multistat panel). Added the ability to toggle between full (original) and summary display modes.
Column and label filters work in summary display mode.
Summary display mode easily translates into multistat panels.
Sample configuration for multistat panels:
If these changes are of interest, I have a patchfile ready to go.
Hi @renzsickle, Your additions seems very interesting ! Can you make a PR for me to have a look please?
Sure. It's been some time since I posted this, but I have been able to branch from an older commit and apply the patch file. However, when I try to push my new branch up, I encounter the following error:
$ git push origin feature/alert_summary ERROR: Permission to camptocamp/grafana-prometheus-alertmanager-datasource.git denied to renzsickle. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
As I haven't contributed to a project on Github before, this may well be an error in my configuration (I just setup a fresh SSH key) - or I might genuinely not have access (my new key was enough to clone the repository). I've also uploaded the patch below for viewing:
It seems to apply cleanly to commit a22631ea7801e486bca638d302beaf939b4b252d.
Please let me know how you'd like to proceed.
Hi @renzsickle It's a normal behavior, you must create a PR from your own fork :wink:
There is the how-to:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some amazing stuff'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Create a new Pull Request
Don't hesitate to ping me if you need further help :+1: