Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

templating option "Include All option" does not seem to be working #41

Closed
samuelbenhamou opened this issue Jan 11, 2017 · 2 comments
Closed

Comments

@samuelbenhamou
Copy link

when using templating with whatever query
in my case : metrics(cpu.system.value_rate)
I get the correct values returned:

  • cpu.0.cpu.system.value_rate
  • cpu.1.cpu.system.value_rate
  • cpu.2.cpu.system.value_rate
  • cpu.3.cpu.system.value_rate

Selecting either separate value or even multiple if the selection options has been ticked works correctly but when I select all, I end up with an empty graph because from what I gathered the query sent pass on "$__all" as the name
is there any "Custom all value" to be used maybe or is it a bug ?

@samuelbenhamou
Copy link
Author

samuelbenhamou commented Jan 23, 2017

found the culprit:

-          if (variable.current.value === "$__all") {
+          if (variable.current.value[0] === "$__all") {

in the datasource.js

@jifwin
Copy link
Contributor

jifwin commented Jan 26, 2017

Thank you @samuelbenhamou . That was the reason indeed. Fixed.

@jifwin jifwin closed this as completed Jan 26, 2017
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

2 participants