Calculate two metrics dont work

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

  • What are you trying to achieve?
    I’m trying to perform a calculation between two variables, one of which changed instance in prometheus, however, I preserved the same name.

  • How are you trying to achieve it?

  • What happened?

  • What did you expect to happen?
    Perform the calculation and show it on the chart correctly, just as it was before the metric changed instance.

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

  • 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?