Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

custom variables in graphs #120

Closed
phil-or opened this issue Mar 2, 2018 · 4 comments
Closed

custom variables in graphs #120

phil-or opened this issue Mar 2, 2018 · 4 comments

Comments

@phil-or
Copy link

phil-or commented Mar 2, 2018

I am using Grafana with custom templates, to display all icinga services from one host with correct units in one dashboard (custom-network).
I would like to see the correct graph from every service in icinga and tried to use the custom variables in the graphs config.
grafik
In this case i get linked to this grafana page and the $service.name$ dont get resolved.
grafik

Is it possible to use Icinga variables in the icingaweb2-grafana Modul, or which variable must be set in the graph config to display the correct graph?

Your Environment

  • Icinga Web 2 Grafana version (System - About): 1.2.0
  • Icinga Web 2 version and modules (System - About): 2.5.1
  • Version used (icinga2 --version): r2.8.1-1
  • Grafana Version: 5.0.0
@dnsmichi
Copy link
Collaborator

dnsmichi commented Mar 2, 2018

Huh?

@phil-or
Copy link
Author

phil-or commented Mar 2, 2018

I am sorry, sent too early. Now the post has been successfully edited.

@phil-or phil-or changed the title custom variables in graphs with custom variables in graphs Mar 2, 2018
@Mikesch-mp
Copy link
Owner

The Custom Variable field can only use custom variables from Icinga.
But you can use the service variable that is send to grafana. You need to use templating, see the docs for influxdb or graphite on howto create dashboards.

Regards,
Carsten

@phil-or
Copy link
Author

phil-or commented Mar 5, 2018

Thanks!
I always tried the icinga variable, with the custom variable the link to grafana works.
I should just read more carefully...

@phil-or phil-or closed this as completed Mar 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants