How Can I Get Data From Query Which Grafana Send


#1

I’m playing with status panel in Grafana, and I’m trying to create my own status panel based on single status panel. I’m using openTSDB as data source, and I want to use some data from http response return by the query.

But I find that in my plug-in I can only get datapoints & target field.How can I get other fields return by the query?


#2

other fields? that is all that is returned.

you do not get access to the raw response. But there is not much more (except tags info, but that is encoded in the target string)


#3

When I say ‘filter’ I mean OpenTSDB filter.


#4

filters? can you show what OpenTSDB returns that you want to access from the panel?


#5

When I say ‘filter’ I mean OpenTSDB filter. See capture below.

Here is the response from server. For example, I want to access query field from response, how should I do it? As far as I know, there are only few information from response has been passed to plugin. ( like tags and metric name)

I want to do some trick in response, so it can carry more information from server, and I want to use it in my plugin. That’s why I want to access raw data of http response.


#6

You can get tag and metric name in the series name using the query alias feature, there is no way to access the raw response and tags, but will likely change this in a future release


#7

Thx, for some feature, it will be better if developers can get raw data. It’s hard to mapping query and it’s response.

Also with raw data, we can do more things in plugin.