grafana-prometheus-alertmanager-datasource
grafana-prometheus-alertmanager-datasource copied to clipboard
On Grafana alertmanager dashboard, severity value is shown as "-"
What happened: On prometheus alertmanager, there are alerts, severity values are "MINOR". On Grafana, set datasource is prometheus alertmanager, create a dashboard to show alerts got from alertmanager. Alerts are shown, but severity values are "-".
What you expected to happen: On Grafana, in alerts table, severity values are the same with those on alertmanager, not "-".
How to reproduce it (as minimally and precisely as possible): 1.On Prometheus, there are pre-defined rules, including "severity: MINOR", "severity: MAJOR", "severity: CRITICAL". 2.Triger alerts, there are alerts shown on alertmanager. 3.On Grafana, set datasource is prometheus alertmanager, create a dashboard to show alerts got from alertmanager. Alerts are shown, but severity values are "-".
Anything else we need to know?: I also modified Prometheus pre-defined rules severity value to number, such as "3". Triger alerts, on Grafana, Alerts are shown, severity values are "3". That's correct. So, I guess severity values only support number, not support string, need to enhance.
Environment: •Grafana version: v6.2.2 •Grafana plugins: prometheus alertmanager v0.0.7
Same issue here, numbers aren't solely fit for purpose here!
same issue for me :
Grafana version : 6.4.4 prometheus alertmanager plugin : 0.0.7
Same here, anyone has figured out why is not showing the severity?
I can even see the value of the severity in the Grafana query inspector:
https://github.com/camptocamp/grafana-prometheus-alertmanager-datasource/issues/31#issuecomment-433387051 this solved it for me. you have to set up the severity levels on datasource configuration:
Critical=critical High=high Warning=warning Info=info
@JMUsero where did you put that? I have a config file for grafana and i tried:
apiVersion: 1
datasources:
- name: AlertManager
type: camptocamp-prometheus-alertmanager-datasource
access: proxy
url: https://blabla
basicAuth: true
basicAuthUser: bla
jsonData:
severity:
Critical: critical
High: high
Warning: warning
Info: info
secureJsonData:
basicAuthPassword: blabla
I also tried putting them right under jsonData without the 'severity:' key, but i am still getting the '-' of shame under severity in grafana. Even tried putting it under secureJsonData because i got desperate. Still nothing!
My grafana is version 7.5.3 Not sure how to check plugin version though. I just put the list of plugins to install in my config yaml: plugins: grafana-piechart-panel,digrich-bubblechart-panel, etc....
Hi,
I'm also facing the same issue. Workaround didn't work for me. Can anyone please help.