All work

Select view

Select search mode

 

Values are not retained if using variables in dropdown in Performance queries

Unresolved

Description

From customer mlaercher.

Values are not retained if using variables in dropdown. Add a visualization in Grafana with variables in dropdown (for example $node and $iface - select ifHCInOctets) and save the dashboard. The graph is displayed. Go back to edit mode, the graph disappears and the Resource is on default value "Select Resource" - set them back to variable $iface and the graph works - this can be repeated as often as desired.

Also when using a variable (for example $node) in the Node - only variables can be used in the Resource but if select a real node in the Node field all Resources can be selected. Tried all plugin versions from 9.0.11 onwards with Grafana Version 9.5.19 and 10.4.3.

Screenshots - if you pick a template variable like $node, then no actual values show up in Resources (just the available template variables are displayed in the dropdown). Apparently we aren’t getting the current variable value and using it to get the list of resources.

Attachments

3

Details

Assignee

Reporter

Fix versions

Affects versions

Sprint

Priority

PagerDuty

Created May 31, 2024 at 1:54 AM
Updated January 24, 2025 at 4:33 PM

Activity

Show:

Scott ThelemanDecember 18, 2024 at 9:18 PM

it will be in the next OPG release, probably next month.

User could of course build from the code release-9.x branch, or get a snapshot package.

Dino YanceyDecember 18, 2024 at 8:06 PM

This is much better, thanks!

Saul BernabeDecember 18, 2024 at 6:55 PM

Awesome! Thanks for the heads up Scott.

Is there way to implement the fix? Or is it going to be released in a new plugin version?

Scott ThelemanDecember 18, 2024 at 6:14 PM
Edited

Merged and appears to be fixed.

Scott ThelemanDecember 10, 2024 at 10:04 PM
Edited

Found an issue where setting Resource to a template variable was being saved, but wasn’t being properly initialized when you return to the panel. I have a fix for this.