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

Unable to add new field from calulation/binary transform a series from CompareQueries #12

Open
fenneh opened this issue Oct 16, 2024 · 3 comments

Comments

@fenneh
Copy link

fenneh commented Oct 16, 2024

What happened?

I believe this is a similar issue to AutohomeCorp/autohome-compareQueries-datasource#41

I believe when using CompareQueries it breaks the ability to add new calculated fields via Grafana's Transform Data option.

If I toggle CompareQueries off the series generated by the transform show, if I toggle it back on the transforms stop.

The reason I'm attempting to do this is I have

  • Query A - CPU Usage for today
  • Query B - CompareQueries doing a time shift of 1d
  • Grafana Transform - Diff the two queries

What did you expect to happen?

The diff to be displayed

Did this work before?

N/A

How do we reproduce it?

  1. Create Query A
  2. Create Query B which is a CompareQuery of Query A but time shifted
  3. Use Grafana transform to Add field from calculation and do a math operator on the two series

Environment (with versions)?

Grafana: 11.0.0
OS: Windows
Browser: Edge

Grafana platform?

Docker

@leoswing
Copy link
Owner

leoswing commented Oct 17, 2024

Hi, @fenneh thanks for your issue. According to the docs on Grafana, since the compareQuery plugin is totally a frontend plugin, so it's unable to support the feature which only works in backend plugin.

Calulation and transform are the feature only works in backend plugin~

image

@ShelbyTang
Copy link

same problem, any solution?

@leoswing
Copy link
Owner

same problem, any solution?

@ShelbyTang For frontend plugin it is unable to use the backend feature, I will try to do some development for this feature if free these days

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

3 participants