(I guess new users have to have simple problems. I had to remove all but two of the screenshots. Probably a futile effort without that, but I’ve already typed it all in so I’ll just remove the screenshots and you can use your imagination)
Just starting to use graphana with influxDB. Love it! But i’m having a lot of trouble using a variable to select fields to include in a graph.
I have an influxDB with a flat series of measurements containing multiple fields. I want to have a graph panel that can select multiple fields using a variable selector. I can build the variable from a simple query:
show field keys on iotawatt from home
and that works fine.
I have tried with “multi-value” on and off. Neither seems to work but different problems. First the simple case, with multi-value off. I specify the variable using the dropdown selector:
The query is:
which does not work. I really don’t understand why it’s using regexp anyway. If I overide by typing in:
the query becomes:
which works fine. So I guess the question in the case of the single value variable is how to eliminate the regexp, which seems ill formed anyway.
Now the real problem. I’d like to be able to select multiple fields in the same graph using the multi-value capability. So I turn on multi-value and specify two values:
I choose the variable template in the dropdown list:
Once again I get a regexp, and the query is:
which doesn’t work.
Can someone point me in right direction to get these variables to work? The examples seem to deal with tags rather than fields, but I don’t see why it shouldn’t work with fields. I’ve thought about changing over to make all my fields tags, but that seems like an inefficient way to organize the data since all of the fields exist in each measurement.