-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Conversation
(Open the links below in a new tab to go to the correct steps)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Backend code coverage report for PR #66260 |
Frontend code coverage report for PR #66260
|
| `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 | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `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 | | |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
There was a problem hiding this 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!
In this PR, we are adding
disableElasticsearchBackendQuerying
feature toggle to disable running queries trough backend for Grafana 10 release. It also removeselasticsearchBackendMigration
added for development purpose anddisableElasticsearchBackendExploreQuery
added for 9.5 to give user a way to disable running of Explore queries trough backend.Part of #54011