graphitegrafana

divide multiple series by each other in grafana


I'm using Grafana for a dashboard, and I have the following queries:

A) scale(networkstats.day.$Network.widget_requests, 0.001)
B) divideSeries(networkstats.day.$Network.campaigns_spend, #A)

and showing only query B.

I'd like to show this exact graph for all networks, and not just a single one.

Is there a way to divide a set of series by an id? (in our case network)


Solution

  • If $Network is the template variable defined in your dashboard having multiple values you can generate:

    or