Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add alertstatus and alertstatus_code fields to data frame #101

Merged
merged 2 commits into from
May 10, 2021
Merged

Add alertstatus and alertstatus_code fields to data frame #101

merged 2 commits into from
May 10, 2021

Conversation

el-psycho
Copy link
Contributor

@el-psycho el-psycho commented Apr 9, 2021

Adds an alertstatus field, which is a string with the alert status as reported by alertmanager, and an alertstatus_code field which is an integer string for the corresponding alertstatus.

The reason for these is I find it useful to show on the dashboard whether an alert has been suppressed (silenced or inhibited) or is active. The alertstatus_code is needed to be able to colour the Grafana table cell or text based on a threshold. Here is a dashboard and settings that show this use case under the Alert Status column:
grafana-alertmanager-alertstatus
alertstatus_code_override

@el-psycho
Copy link
Contributor Author

@cryptobioz Have you had time to review this? Do you think it's a good idea?

@cryptobioz
Copy link
Member

Great feature! It looks good to me, thanks @el-psycho!

@cryptobioz cryptobioz merged commit 6fa6aad into camptocamp:master May 10, 2021
@elcomtik
Copy link

@cryptobioz could you make a release with this feature?

@hbollon hbollon mentioned this pull request May 6, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants