How to stack two query values onto one graph

  • What Grafana version and what operating system are you using?
    I am using managed Grafana in the cloud.
  • What are you trying to achieve?
    I am having two queries that are showing two different values in one time-series graph. Data source is influx db. I can not get sum in influx, because measurements are not done in completely the same _time (in the same second)
  • How are you trying to achieve it?
    I already tried to create new query and use $A+$B, but without success.

In the above screen, you will see, I have a value of 3 and value of 18, I would also like to have a line with value 21, that will represent the sum. How is this possible?

I solved the problem. Created new query C: $A+$B as described above. Before I was having problem with initial queries, after modifying it, it started working.

1 Like