-
Notifications
You must be signed in to change notification settings - Fork 397
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 Data source Plugin error after provisioning #1749
Comments
Hi @jcapote22, if you have access to backend logs, are there any error messages logged there that appear when this happens? |
We've gathered more information to help diagnose this issue:
Error Logs: Before "Save & Test": Attaching logs showing the initial error message ("Query error: An error occurred within the plugin") encountered upon accessing the datasource.
After "Save & Test": Attaching logs indicating a successful connection once "Save & Test" is manually triggered.
Environment: |
What happened?
``When creating datasources in Grafana via Kubernetes resources, each datasource appears correctly in the Grafana UI. However, accessing any newly created datasource shows the following error:
"Query error: An error occurred within the plugin"
These datasources, managed via ArgoCD, are created using Kubernetes resources, allowing configuration as code and ensuring consistency across deployments. In this setup, we manage over 100 datasources, so the current behavior requiring manual activation is particularly challenging.
Despite this error, the datasource successfully connects after manually clicking the "Save & Test" button in the UI. This manual intervention is problematic when deploying multiple datasources, as it requires opening each datasource individually to connect it, which is inefficient.
same datasource but you give it save and test and it works
no pod restarts or log errors
datasource yaml example
What did you expect to happen?
I expected Grafana to automatically validate and establish connections for each datasource upon creation, without needing to manually interact with the "Save & Test" button.
Did this work before?
This is a new setup, so it hasn't worked correctly with the current versions. I haven’t encountered this issue in previous versions, but the environment has changed recently.
How do we reproduce it?
1- Deploy Grafana with Grafana Operator and Grafana version 11.2.2.
2- Create a datasource using a Kubernetes resource.
3- Access the datasource in the Grafana UI.
4- Observe the initial error "Query error: An error occurred within the plugin".
5- Manually click "Save & Test" in the UI to establish the connection.
Is the bug inside a dashboard panel?
No, the issue occurs within the datasource configuration UI and not within a dashboard panel.
Environment (with versions)?
Grafana: 11.2.2
OS: linux (kubernetes)
Browser: chrome Versión 129.0
Grafana platform?
Kubernetes
Datasource(s)?
Elasticsearch v 7.17.19
The text was updated successfully, but these errors were encountered: