Open rangsan opened 6 years ago
Hi @rangsan, Can you provide more details about the problem?
If I use template variable in metric like this A vbox $host gauge-zk_service_health nothing show
If I change to real host A vbox server1 gauge-zk_service_health everything works ok
Does the Status Panel plugin supports template variables?
Hi @invin12,
Same issue is happening here. Grafana version: 5.2.1 Plugin version: 1.0.8
Steps to produce the error:
The strange thing that I have the target on the panel but no the values when I use template variable to query. Only the values are not displayed.
Update:
It seams that you don't use the template variable when you calculate the result.
When I use mock the response the below doesn't work
[ { "datapoints": [ [2, 1533045787533] ], "target": "bad_check" } ]
But this works
[ { "datapoints": [ [2, 1533045787533] ], "target": "$TARGET" } ]
So I think you use the target which is in the result, but you should use the template variable "$VAR" instead if it is specified.
The metric is not shown when using template in query. I forced to show the data but still didn't work. But when I query the server straight from the query everything work fine.
Graphite v. 0.9 Grafana v. 4.5 Status panel v. 1.05