82 Commits

Author SHA1 Message Date
7520ebadac Refactor: move ScopedVars to grafana/data (#18992) 2019-09-10 12:06:01 -07:00
4e27ba9646 noImplicitAny: Sub 3000 errors (#17821)
* noImplicitAny Stackdriver

* Sub 3000 noImplicitAny

* Update error count limit

* Add DataQueryRequest type
2019-07-01 11:11:57 +02:00
7eabc282e9 Chore: Adds typings to lodash (#16590) 2019-04-15 12:11:52 +02:00
f608340c35 Add delta window function to postgres query builder
Unlike the increase function delta doesn't check for resets
and can go negative. This is similar to the prometheus delta
function.
2018-10-31 19:26:18 +01:00
3fe3f3741f Merge pull request #13200 from svenklemm/postgres-query-builder-fixes
Fix query builder queries for interval start
2018-09-10 13:01:17 +02:00
116fb50530 Fix query builder queries for interval start
This changes the rate and increase queries to not calculate
a value when there is no previous value. This also adds an
order by metric column to prevent inconsistent series ordering
in the legend.
2018-09-08 08:28:15 +02:00
6b863e3b0f Fix quoting to handle non-string values 2018-09-07 10:21:10 +02:00
265d5daf57 Merge branch 'master' into postgres-query-builder 2018-08-31 19:02:46 +02:00
7a5b5906ed fix quoting 2018-08-29 12:24:28 +02:00
da8696ed95 fix handling of variable interpolation for IN expresions 2018-08-26 22:43:03 +02:00
9699d7a166 make suggested filter macro depend on type 2018-08-18 12:11:10 +02:00
18ce6fc280 use unixEpochGroup macro for unix timestamp 2018-08-18 12:04:32 +02:00
907e8fd77c fix variable escaping 2018-08-15 11:37:30 +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
2cae966e6c use $__timeGroupAlias macro 2018-08-02 21:40:15 +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
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
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
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
b28bf1a4f9 rename PostgresQueryBuilder to PostgresMetaQuery 2018-07-15 17:12:03 +02:00
070b556fd3 dont expand variables in rawSql 2018-07-15 17:02:26 +02:00
6e824e81bf fix rate special function when using group by 2018-07-15 15:14:12 +02:00
d9648f1fe7 fix bug in query generation with metricColumn 2018-07-15 09:43:38 +02:00
fa66645b0f refactor PostgresQuery 2018-07-15 09:36:49 +02:00
d7ed706e12 refactor PostgresQueryCtrl and PostgresQuery 2018-07-14 20:28:34 +02:00
2dc9d4e960 refactor addGroupBy and removeGroupByPart 2018-07-14 16:46:53 +02:00
b745fab190 add tests for query generation 2018-07-13 22:29:10 +02:00
bf21f1bf76 indent generated SQL 2018-07-12 22:36:41 +02:00
a24a6624e3 handle counter overflow and resets in rate 2018-07-12 13:15:19 +02:00
0935526d23 partition by metricColumn when using increase 2018-07-12 10:13:21 +02:00
bbe7b9b908 add rate and increase special functions 2018-07-12 09:57:04 +02:00
2784a2df6b Refactor value column SQL generation 2018-07-11 13:03:06 +02:00
9ba42f63f1 Refactor metric column sql generation 2018-07-11 12:33:37 +02:00
a86e77fc68 Refactor group by query generation 2018-07-11 12:20:24 +02:00
b9edc3c611 Refactor where clause generation 2018-07-11 11:50:02 +02:00
5dd236bf05 refactor SQL generation for value columns 2018-07-11 11:09:28 +02:00
772825ed09 Refactor time column sql generation 2018-07-11 11:00:12 +02:00
c5bde0ef45 Refactor render function on PostgresQuery 2018-07-11 10:50:49 +02:00
0e610cad1b set query gui as default handle old panels gracefully 2018-07-10 21:40:59 +02:00
e8e24f6139 add alias when adding group by 2018-07-10 11:32:23 +02:00
6e7161f238 add aggregates when adding group by 2018-07-10 11:14:00 +02:00
8490ae41b6 handle pre query gui queries gracefully 2018-07-07 20:41:24 +02:00