I want to have a panel showing the result of x (where X = query "A" / query "B" )

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?
    I have query “A” and query “B”. How can I have a panel showing the results of division query “A” by query “B” ?

  • How are you trying to achieve it?
    Should be math be done via query or transform ?

  • What happened?
    The panel I am trying to show, is the result of math division of query A by B.

  • What did you expect to happen?
    Single panel showing the result.

  • Can you copy/paste the configuration(s) that you are having problems with?
    I can not.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?
    I can’t find specific instructions for this.

Use CloudWatch metric math for that - Disappointing First Experience with Grafana - can't do simple math?

Did you try a transformation like this?

The above method assumes you want Query A and Query B visible on the same graph. You can also make only the transformed result appear by clicking on the legend:

1 Like

Thanks !

Worked perfectly !

1 Like