Skip to content
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

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

Open
jiantaoz opened this issue Sep 27, 2019 · 6 comments
Open

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

jiantaoz opened this issue Sep 27, 2019 · 6 comments

Comments

@jiantaoz
Copy link

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

@naphta
Copy link

naphta commented Nov 28, 2019

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

@aleteneur
Copy link

same issue for me :

image

Grafana version : 6.4.4
prometheus alertmanager plugin : 0.0.7

@anxolin
Copy link

anxolin commented Dec 29, 2019

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

@JMUsero
Copy link

JMUsero commented Jan 17, 2020

#31 (comment)
this solved it for me.
you have to set up the severity levels on datasource configuration:

Critical=critical
High=high
Warning=warning
Info=info

@Joseph94m
Copy link

Joseph94m commented Apr 15, 2021

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

@VeenaThimmegowda
Copy link

Hi,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants