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
Grafana 2.0: SQL Data source #1542
Comments
I would personally suggest some thing more in the line of Cassandra (CQL) or SparkSQL |
Wow, this us very usefull.
|
@phagedorn some like that, not sure about the switch for order asc/desc, grafana always wants them in ascending order (by time). not sure about the limit x either. more like a metric query template (written by user when they add the data source), this just an example, have not thought about this much yet. SELECT MyValue as Value, Timestamp as Time
FROM MyMetrics
WHERE SeriesName IN (?SeriesList) AND Time > (?TimeFrom) AND Time < (?TimeTo)
ORDER BY Timestamp ASC @syepes I thinking as first step to implement something simple. Could you describe more what it would take to implement CQL or SparkSQL on top of a generic SQL database and what benefits? SparkSQL looks interesting from analaytics standpoint, any golang implementation? |
+1 for allowing raw SQL |
@torkelo : Query templates sounds nice 👍 |
Will this datasource has a suggestion editor? What DB backends for this datasource can be used ? |
also interested in allowing raw SQL |
Initially mysql and postgres, no auto complete isn't going to be included initially |
interested +1 |
👍 for postgres |
1 similar comment
👍 for postgres |
👍 for postgres with JSON type |
1 similar comment
👍 for postgres with JSON type |
Any idea about the roadmap when SQL datasource will be available? In 2.0 or 2.1? |
@juliusloman not sure, maybe in 2.2 or 2.3, so much other stuff that was pused to 2.1 that needs to happen first |
But a PR is always welcomed |
Having a SQL data source will definitely make grafana a top analytic tool. I would love to see it. Torkel, sorry not familar with github, what does PR entail? |
@hceylan97 it entails that someone tries implement it and submits it as pull request (i.e feature patch), I would love to implement this, but not sure when I will have to do it as I will probably have more high prio issues for the next couple of months |
besides you, curious if anybody else is working on this? |
👍 |
+1 mysql |
@torkelo I might start a PR for this pending the expected amount of work. Would love to figure out how to make new datasources so we can integrate more into Grafana. Could you give a rundown of what needs to be done to add a new data source and the work remaining for generic SQL support? |
+1 Oracle |
+1 MS SQL |
👍 for postgres with JSON type |
+1 postgres / postgres with JSON type |
Redshift SQL is just Postgres 8.x family, which should be compatible with the recently-landed Postgres support. Haven't tried it yet but also interested if there's any errors. |
If you dont mind proxying data through postgres you can connect grafana to (almost) any database with postgres foreign data wrapper (https://wiki.postgresql.org/wiki/Foreign_data_wrappers). |
+1 Oracle DB |
+1 for MS SQL |
+1 for SQLite |
hi, any one interested in mssql, please check pr #10093 |
Has anyone worked on Oracle as data source? I would love to see it. |
@gsaray101 and anyone who's interested - contact support@grafana.com if you'd like to test the Oracle beta datasource. |
We have merged the Microsoft SQL Server data source to Grafana and it will be released in Grafana 5.1 (#10093, #11298). This means that Grafana now has support in core for MySQL, Postgres and MS SQL Server as data sources. We will not be adding any more sql databases as data sources to core Grafana so it is finally time to close this issue. In the near future, we will have support for backend plugins so it will be possible to have other sql data sources as external plugins. |
Anyone looking at adding DB2 LUW support? |
@daniellee What about Oracle and SQLite? 🤔 Any news about this? |
@mnlbox There is an Oracle plugin already: https://grafana.com/plugins/grafana-oracle-datasource (It is not open source however) Sqlite as a datasource is not on our backlog at all and I haven't heard of anyone working on it. |
+1 for Presto |
Any update on SQLite @daniellee ? |
SQLite datasource would be very useful! |
Sqlite!!!!! |
Sqlite !!!!! |
Please use the 👍 function to show your approval and comment only if you can supply additional information, helpful notes, patches and similar - well - comments helping to solve the issue. Spamming developers, contributors or participants probably won't convince anyone to implement your requests. Daniellee stated above there are no further efforts taken to support additional datasources in core and plugins are the way to go. Also no one seems to have started working on SQLite so far. If you need a quick and dirty solution and don't want to write/commission/adapt a whole plugin for/to SQLite it should be somewhat easy to build a smapp proxy-script to serve your SQLite-data as JSON similar to doublemarkets RRD-Proxy. Not a great solution speedwise, but you probably wouldn't be using SQLite if thats a concern. |
As @adlerweb says, there are currently no plans for the core Grafana team for a core Sqlite datasource. I don't think we would accept a PR for it either. However, we would of course, publish an external datasource plugin on grafana.com if someone wrote it. |
For those interested in SQLite support (or in fact those who wait for any data source), you don't need to wait long. It's pretty easy to write your own data source using Python. The documentation is a bit sparse (see https://github.com/grafana/simple-json-datasource), but it's possible. I have created a fairly extensive example in this repository and a blog post on how to visualize SQLite with Grafana . The repository also includes a working example of SQLite and a small database for this example. |
|
vote for sqlite |
For Sqlite |
Vote for sqlite. |
Sqlite plsss |
How come this is not mentioned here? |
With the backend comes the possibility to have SQL data source.
My thinking is that when you add the data source you
Maybe also an option to allow RAW SQL queries from the panel metric query interface.
Any other ideas?
The text was updated successfully, but these errors were encountered: