#I am new to writing queries in Grafana

1 messages · Page 1 of 1 (latest)

faint aspen
#

query would be something like this: avg(volume_read_latency{datacenter=~"$Datacenter",cluster=~"$Cluster",node=~"$Node"}).

#

which dashboard you are planning to use this query? Because this query would expect 3 variables datacenter, cluster and node, if they don't exist in that dashboard, query would break.

shut nova
#

Hi, it would be on the node dashboard

faint aspen
#

Adding the same image here which you have added earlier, but it hasn't been included in this thread.

shut nova
#

the query works, but i would like the graph to show me a breakout of each aggregate as opposed to a mean average of all

#

possibly something to do with legend values

faint aspen
#

When you apply avg function on any query it will consolidate all time series and don't give much granular detail. In your case, you should remove the avg function from query and add legend as {{aggr}} that will work.

shut nova
#

Thanks, I am getting closer now, that helped me understand a lot. Basically I am trying to get this Graphite query converted to Prometheus.....

#

doesnt appear to be a nice breakout of read and write latency on the node, sure its there somewhere 😄