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

can't use annotation field as table field #12

Open
lelvisl opened this issue Jan 24, 2018 · 2 comments
Open

can't use annotation field as table field #12

lelvisl opened this issue Jan 24, 2018 · 2 comments

Comments

@lelvisl
Copy link

lelvisl commented Jan 24, 2018

Alertmanager always gives 1 as value for all active alarms.

for example

alert: high_load
expr: (1
  - (avg(irate(node_cpu{job="node",mode="idle"}[5m])) WITHOUT (cpu)))
  > 0.6
for: 1m
labels:
  severity: warning
annotations:
  description: Instance {{ $labels.instance }} cpu over 60%
  resolved: Instance {{ $labels.instance }} cpu is ok
  summary: Instance {{ $labels.instance }} cpu over 60%
  value: '{{$value}}'

I can add value to description, bun can't set value to separated field in grafana table.

@cryptobioz
Copy link
Member

Adding a new column in the table is not possible for now but it would be great to have this feature. I'll see how this can be implemented.
Feel free to open a PR ;)

@totallyunknown
Copy link

Actually this is pretty useless, if you can't access the annotations here - that's the real alert message.

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

3 participants