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

Elasticsearch: Add feature toggle to disable running queries trough backend #66260

Merged
merged 3 commits into from Apr 12, 2023

Conversation

ivanahuckova
Copy link
Member

@ivanahuckova ivanahuckova commented Apr 11, 2023

In this PR, we are adding disableElasticsearchBackendQuerying feature toggle to disable running queries trough backend for Grafana 10 release. It also removes elasticsearchBackendMigration added for development purpose and disableElasticsearchBackendExploreQuery added for 9.5 to give user a way to disable running of Explore queries trough backend.

Part of #54011

@ivanahuckova ivanahuckova requested review from mckn and removed request for a team and mckn April 11, 2023 09:58
@github-actions
Copy link
Contributor

github-actions bot commented Apr 11, 2023

⚠️   Possible breaking changes

(Open the links below in a new tab to go to the correct steps)

grafana-data has possible breaking changes (more info)

Console output
Read our guideline

@grafanabot grafanabot added the levitate breaking change A label indicating a breaking change and assigned by Levitate. label Apr 11, 2023
Copy link
Contributor

@gabor gabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ivanahuckova ivanahuckova removed the levitate breaking change A label indicating a breaking change and assigned by Levitate. label Apr 11, 2023
@github-actions
Copy link
Contributor

Backend code coverage report for PR #66260
No changes

@github-actions
Copy link
Contributor

Frontend code coverage report for PR #66260

Plugin Main PR Difference
elasticsearch 78.1% 78.09% -.01%

@grafanabot grafanabot added the levitate breaking change A label indicating a breaking change and assigned by Levitate. label Apr 11, 2023
| `emptyDashboardPage` | Enable the redesigned user interface of a dashboard page that includes no panels | Yes |
| `disablePrometheusExemplarSampling` | Disable Prometheus exemplar sampling | |
| `logsSampleInExplore` | Enables access to the logs sample feature in Explore | Yes |
| `disableElasticsearchBackendQuerying` | Disable processing of queries and responses in Elasticsearch data source trough backend | |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `disableElasticsearchBackendQuerying` | Disable processing of queries and responses in Elasticsearch data source trough backend | |
| `disableElasticsearchBackendQuerying` | Disable the processing of queries and responses in the Elasticsearch data source through backend | |

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanahuckova , I'm unsure of what 'through backend' means. Can you please explain, and I can help with adjusting the words. Thank you!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chri2547 currently we are processing Elasticsearch queries and responses in typescript (on frontend). We are moving logic for processing queries and responses to data source backend in golang. This change should not be visible for users (we did extensive testing), but because processing of both - queries and responses is quite complex, there might be cases when processed response might have slight differences that can (in edge cases) break dashboards. In that case we recommend using this feature toggle to disable running queries torugh backend and we ask users to create a github issue to improve the experience and fix the issue.

Copy link
Collaborator

@chri2547 chri2547 Apr 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanahuckova, interesting - and thank you for the thorough description. How will a user know that this feature toggle is available and that they should create a GH issue to improve the experience?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will:

  • Communicating this change via #elk channel in community slack
  • Part of changelog

If you have any other suggestions, let me know!

Copy link
Collaborator

@chri2547 chri2547 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A docs suggestion and a question for you. Thank you for the contribution!

@ivanahuckova ivanahuckova enabled auto-merge (squash) April 12, 2023 12:04
@ivanahuckova ivanahuckova merged commit 303777e into main Apr 12, 2023
16 of 17 checks passed
@ivanahuckova ivanahuckova deleted the ivana/es-feature-toggle-disable-backend branch April 12, 2023 12:20
alexmobo pushed a commit that referenced this pull request Apr 14, 2023
…ackend (#66260)

* Elasticsearch: Create feature toggle to disable running queries trough backend

* Fix frontend tests running trough frontend

* Update description of feature toggle
@zerok zerok modified the milestones: 10.0.0, 10.0.0-preview May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants