-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
SQLite as Datasource #18376
Comments
Great idea! I like this feature as well. |
Interesting. I have plenty of use cases for this! |
As far as I currently see it, this would be a change in the Grafana source code (and not a plugin). If any core member gives this idea a "get-go" I would try to tackle it. Any further information or possible pitfalls would also be very much appreciated 😉 |
Thumbs Up! |
I fully agree, a SQLite plugin would be sweet. Native support would be even better. |
Hmm. In that case I guess I'll look into Plugins a bit more. My previous assumption was, that plugins only work in the frontend via HTTP requests, but maybe not... I'll check it out later... |
So, this is not happening? Would be sweet with the default home-assistant docker... |
While it's not a totally generic SQL source, it's relatively straightforward to use Express/Fiber/etc to expose some SQLite queries to Grafana's simple-json-datasource. For example, sqlite32grafana exposes SQLite3 columns as timeseries to Grafana. |
I created a plugin that queries an SQLite reachable on the Grafana host (can be through a network drive). https://github.com/fr-ser/grafana-sqlite-datasource This solves the case where Grafana and SQLite are hosted on the same device. A second use case would be SQLite on the same machine as the user and Grafana hosted somewhere else. This is still open |
Hi fr-ser, |
@kevinvh001 Please open an issue in the plugin-repo if you are experiencing problems: https://github.com/fr-ser/grafana-sqlite-datasource/issues |
What would you like to be added:
I would like to use SQLite as a datasource.
Why is this needed:
Many smaller IoT applications use SQLite as their storage and it is not always trivial to change that behavior.
I would also be willing to implement this feature myself, I am just wondering where to start and if this is a good idea at all.
The text was updated successfully, but these errors were encountered: