Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field from calculation transform bug #187

Open
DrPlague1656 opened this issue Aug 30, 2021 · 0 comments
Open

Add field from calculation transform bug #187

DrPlague1656 opened this issue Aug 30, 2021 · 0 comments

Comments

@DrPlague1656
Copy link

What happened:
Whenever I have 2 query's in grafana I cannot do any binary operation transform without getting NaN as a result even though in calculation I have selected last non null value.

As you can see by the attached screenshots, the 2 query's work seperately but when I have both of them I cannot do a calculation using both of them and only a calculation with the 2nd query gives me a result. Using the first query results in Nan even though when I only have the first query it just calculates as it should

What you expected to happen:
Just have the 2 numbers add up to:
5.764.421.259.264

How to reproduce it (as minimally and precisely as possible):
This is pretty difficult as I am using the PRTG plugin for my query's . This however shouldn't be the issue as I have explained above. The numbers do work when I don't have both query's.

Anything else we need to know?:

I also had this same problem when using InfluxDB getting data from a VCenter server but I have since given up on that because of the NaN issue.

Environment:

  • Grafana version: Grafana v8.1.0-32440pre (72d296843d)
  • Data source type & version:
    Data Sources / PRTG 4.0.4
    https://grafana.com/grafana/plugins/jasonlashua-prtg-datasource/
  • OS Grafana is installed on:
    Docker Container running on Ubuntu 20.04
  • User OS & Browser:
    Windows 10 & Edge Browser
  • Grafana plugins:
    PRTG
    Worldmap Panel
  • Others: /

Calculating between the 2 not working:
Screenshot_1

Calculating with only the first one:
Screenshot_2

Calculating with only the second one:
Screenshot_3

Calculating the first one with both query's
Screenshot_4

Calculating the second one with both query's
Screenshot_5

(Result is the same if I switch the query's around, the first one becomes undefined)
Screenshot_6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant