2d12801186
detect postgres version for saved datasources
2018-08-15 09:48:06 +02:00
2606f6e715
use pointer cursor for buttons in query editor
2018-08-15 09:21:17 +02:00
6d8ad3b076
require postgres 9.4+ for ordered set aggregate functions
2018-08-14 15:49:37 +02:00
9d022766ee
add postgres version to datasource config
2018-08-14 15:45:55 +02:00
c90eb45cef
only show first/last aggregate when timescaledb is enabled
2018-08-14 15:29:29 +02:00
e12d07dd68
keep jsonData in PostgresDatasource
2018-08-14 15:27:58 +02:00
5b3b0295e8
Merge branch 'master' into postgres-query-builder
2018-08-14 15:10:16 +02:00
660530a3a6
Merge pull request #12914 from dehrax/12224-final
...
Karma to Jest: rename and cleanup
2018-08-14 12:55:23 +02:00
15c8ef6c95
Merge branch 'master' into postgres-query-builder
2018-08-14 12:51:03 +02:00
a65589a5fb
Rename test files
2018-08-14 10:52:41 +02:00
c9bbdf244c
get timecolumn datatype on timecolumn change
2018-08-13 11:29:35 +02:00
1dd8192d51
fix datatype query
2018-08-13 09:57:46 +02:00
a4a33d80db
mention time_bucket in timescaledb tooltip
2018-08-09 17:30:46 +02:00
c3aad10047
change timescaledb to checkbox instead of select
2018-08-09 10:05:35 +02:00
b987aee7cf
add timescaledb option to postgres datasource
...
This adds an option to the postgres datasource config for
timescaledb support. When set to auto it will check for
timescaledb when testing the datasource.
When this option is enabled the $__timeGroup macro will
use the time_bucket function from timescaledb to group
times by an interval.
This also passes the datasource edit control to testDatasource
to allow for setting additional settings, this might be useful
for other datasources aswell which have optional or version
dependant features which can be queried.
2018-08-09 10:05:35 +02:00
13d0fa4b9a
add previous fill mode to query builder
2018-08-08 12:23:41 +02:00
3b6454ab88
Merge branch 'master' into postgres-query-builder
2018-08-08 12:09:17 +02:00
52c7edf2f4
rename last fillmode to previous
2018-08-07 21:11:51 +02:00
6d07d825e9
dont break default parameters for functions
2018-08-03 18:38:40 +02:00
e4ae8be9fa
fix suggestion query
2018-08-03 14:09:41 +02:00
aa830211fe
dont order for aggregate
2018-08-03 10:15:28 +02:00
dabfd88cd9
add moving average to query builder
2018-08-03 07:44:36 +02:00
0b57e88f9e
adjust frontend test
2018-08-03 06:19:53 +02:00
2cae966e6c
use $__timeGroupAlias macro
2018-08-02 21:40:15 +02:00
bfc66a7ed0
add fillmode "last" to sql datasource
...
This adds a new fill mode last (last observation carried forward) for grafana
to the sql datasources. This fill mode will fill in the last seen value in a
series when a timepoint is missing or NULL if no value for that series has
been seen yet.
2018-08-02 20:35:09 +02:00
67edb9e9fe
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-08-02 16:39:27 +02:00
5cca478656
Merge pull request #12760 from svenklemm/postgres-timegroup
...
remove alias from postgres $__timeGroup macro
add $__timeGroupAlias macro to all sql datasources
2018-08-02 16:36:01 +02:00
7e9c9199c1
add warning when switching from raw sql mode
2018-08-02 10:15:53 +02:00
a221d9ec84
add more prominent button for switching edit mode
2018-08-02 09:50:21 +02:00
82c473e3af
document $__timeGroupAlias
2018-08-01 21:23:00 +02:00
bb7e583863
fix custom variable quoting in sql* query interpolations
2018-08-01 20:32:50 +02:00
43295f9c18
remove alias from postgres $__timeGroup macro
2018-08-01 08:50:19 +02:00
6613f11499
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-30 15:23:56 +02:00
ace999b13f
rename special to windows
2018-07-29 15:56:22 +02:00
26ea88252b
add first and last support
2018-07-29 15:00:13 +02:00
412bb6acab
refactor function handling in query builder
2018-07-29 13:31:50 +02:00
5327580939
refactor column function handling
2018-07-28 21:41:23 +02:00
6ca7a03975
consistent nameing fro group and select
2018-07-28 12:53:36 +02:00
7905c29875
adjust metric prefix code to sql engine refactor
2018-07-27 15:34:04 +02:00
ad26a319c5
refactor schema query generation
2018-07-27 14:02:12 +02:00
97f24733f5
remove tableschema from query builder ui
2018-07-27 10:58:08 +02:00
b3ebc86093
fix window function query without group by
2018-07-23 07:52:42 +02:00
e1a37cf275
add order by to metadata queries
2018-07-22 17:12:30 +02:00
7af9cd7dfc
set explicit order for rate and increase
2018-07-22 15:20:40 +02:00
84d7743939
fix pre gui queries shortcircuit
2018-07-21 10:38:34 +02:00
9f0b4e0aa7
add groupby when adding first aggregate
2018-07-18 13:29:47 +02:00
0e608a08c2
fix test for query generation
2018-07-15 22:58:25 +02:00
7f348f3836
dont run queries if target has no table set
2018-07-15 22:27:33 +02:00
43686616a0
add query to find metric table
2018-07-15 22:26:32 +02:00
b49d10104e
add popover for metric column
2018-07-15 19:13:19 +02:00