grafana-prometheus-alertmanager-datasource icon indicating copy to clipboard operation
grafana-prometheus-alertmanager-datasource copied to clipboard

On Grafana alertmanager dashboard, severity value is shown as "-"

Open jiantaoz opened this issue 5 years ago • 6 comments

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

jiantaoz avatar Sep 27 '19 09:09 jiantaoz

Same issue here, numbers aren't solely fit for purpose here!

naphta avatar Nov 28 '19 12:11 naphta

same issue for me :

image

Grafana version : 6.4.4 prometheus alertmanager plugin : 0.0.7

aleteneur avatar Dec 04 '19 17:12 aleteneur

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:

image

anxolin avatar Dec 29 '19 17:12 anxolin

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 avatar Jan 17 '20 08:01 JMUsero

@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....

Joseph94m avatar Apr 15 '21 10:04 Joseph94m

Hi,

I'm also facing the same issue. Workaround didn't work for me. Can anyone please help.

VeenaThimmegowda avatar May 20 '21 07:05 VeenaThimmegowda