Erik Sundell
d20c7260b3
Resource type filter ( #13784 )
...
* stackdriver: add resource type to filter and group bys
* stackdriver: remove not used param
* stackdriver: refactor filter and group by code
* stackdriver: remove resource type if its already in filter list
* stackdriver: remove debug logging
* stackdriver: remove more debug logging
* stackdriver: append resource type to legend name if there are more than one type present in the response
* stackdriver: only make new request if filter has real value
* stackdriver: format legend support for resource type
* stackdriver: add resource type to documentation
* stackdriver: not returning promise from query function
* stackdriver: fix refactoring bug
* stackdriver: remove not used import
(cherry picked from commit c5af0bf1c5 )
2018-10-24 13:26:14 +02:00
Erik Sundell
0d0df00b8e
stackdriver: always use regex full match for =~ and !=~operator
...
(cherry picked from commit 8d53799bcd )
2018-10-10 10:39:07 +02:00
Erik Sundell
25f255f560
stackdriver: add tests from regex matching
...
(cherry picked from commit 7e6a5c0a74 )
2018-10-10 10:39:07 +02:00
Erik Sundell
322535a2b7
stackdriver: test build filter string
...
(cherry picked from commit a3122a4b85 )
2018-10-10 10:39:07 +02:00
Erik Sundell
93fb427310
stackdriver: test that no interpolation is done when there are no wildcards
...
(cherry picked from commit 5f7795aa1f )
2018-10-10 10:39:07 +02:00
Erik Sundell
84094b5051
stackdriver: remove debug logging
...
(cherry picked from commit 2a0d7a8803 )
2018-10-10 10:39:06 +02:00
Erik Sundell
0ef06d467a
stackdriver: add more tests
...
(cherry picked from commit 035be6cbbe )
2018-10-10 10:39:06 +02:00
Erik Sundell
dee26f3d2f
stackdriver: fix broken substring. also adds tests
...
(cherry picked from commit 68332c5951 )
2018-10-10 10:39:06 +02:00
Erik Sundell
897cf51e75
stackdriver: remove not necessary helper functions
...
(cherry picked from commit 2e665fba0f )
2018-10-10 10:39:06 +02:00
Erik Sundell
a4e148e300
stackdriver: interpolate stackdriver filter wildcards when asterix is used in filter
...
(cherry picked from commit 4d8f594d31 )
2018-10-10 10:39:06 +02:00
Mitsuhiro Tanda
221341b3e8
add test
...
(cherry picked from commit c2c0cdb49c )
2018-10-10 10:33:25 +02:00
Mitsuhiro Tanda
464e0cf540
stackdriver heatmap support
...
(cherry picked from commit 6770f2e940 )
2018-10-10 10:33:14 +02:00
Mario Trangoni
ec4139d56b
pkg/tsdb/stackdriver/stackdriver_test.go: return simplified
...
See,
pkg/tsdb/stackdriver/stackdriver_test.go:356:2⚠️ 'if err != nil { return data, err }; return data, nil' can be simplified to 'return data, err'
2018-10-01 18:24:00 +02:00
Daniel Lee
bf2abc6940
stackdriver: set default view parameter to FULL
2018-09-29 23:45:28 +02:00
Daniel Lee
399e83f91b
stackdriver: remove metric.category alias pattern
...
After discussions with the Stackdriver team, they did not think this was
needed.
2018-09-28 17:16:35 +02:00
Daniel Lee
41060d24d5
stackdriver: change pattern for annotation to metric.value
2018-09-28 16:16:27 +02:00
Erik Sundell
189f89a9e4
stackdriver: add support for bool values
2018-09-28 15:42:02 +02:00
Erik Sundell
220f479ff8
stackdriver: add support for int64 values
2018-09-28 15:27:28 +02:00
Erik Sundell
2aae7e0c87
stackdriver: fix froamt annotation text for value
2018-09-28 13:50:10 +02:00
Erik Sundell
ca50e315fa
stackdriver: make it possible to use point values of type string
2018-09-28 13:41:28 +02:00
Daniel Lee
a63877bd4f
stackdriver: pattern formatting for annotations
2018-09-27 16:18:48 +02:00
Daniel Lee
03b43ab769
stackdriver: wip annotation support
2018-09-27 15:18:10 +02:00
Erik Sundell
c099074d2c
stackdriver: remove debug logging
2018-09-27 10:41:51 +02:00
Erik Sundell
0507ff69fb
stackdriver: resolve merge conflict
2018-09-27 10:32:30 +02:00
Erik Sundell
481b8653d9
stackdriver: update alignment period rules according to stackdriver
2018-09-27 10:20:01 +02:00
Daniel Lee
6358d3f314
stackdriver: set target to be raw query
2018-09-27 10:14:10 +02:00
Erik Sundell
3c6c456592
stackdriver: use more appropriate test data
2018-09-27 09:19:24 +02:00
Erik Sundell
75a2ea5c71
stackdriver: fix broken test
2018-09-26 18:04:04 +02:00
Erik Sundell
ed6d3bf6ed
stackdriver: WIP - implement stackdriver style auto alignment period. also return the used alignment period and display it in the query editor
2018-09-26 17:50:08 +02:00
Erik Sundell
af9033f3e0
stackdriver: distinct grafana auto from stackdriver auto in alignment period
2018-09-26 15:44:09 +02:00
Erik Sundell
13c68e6ed8
stackdriver: use correct name for variable
2018-09-26 15:37:29 +02:00
Erik Sundell
49cd31ab78
stackdriver: get value type and metric kind from metric descriptor instead of from latest metric result
2018-09-26 11:17:24 +02:00
Erik Sundell
b6a918ba79
stackdriver: merge commit
2018-09-25 15:13:24 +02:00
Erik Sundell
b700c6b0e4
stackdriver: populate alignment and aggregation dropdowns based on metric type and value type
2018-09-25 09:34:14 +02:00
Daniel Lee
4777689f29
stackdriver: skeleton for more query types on the backend
2018-09-24 16:02:35 +02:00
Daniel Lee
681cd7496e
stackdriver: alias patterns WIP
...
This is using the {{}} syntax for alias patterns. Might
switch to the syntax instead.
2018-09-23 22:04:24 +02:00
Torkel Ödegaard
040095b5a8
fix: use same User-Agent header as in other places in grafana when making external requests
2018-09-21 11:35:55 +02:00
Daniel Lee
ddee919edc
stackdriver: remove WIP tests
2018-09-20 20:34:16 +02:00
Daniel Lee
8211f7d0ea
stackdriver: add templating support for metric, filter and group by
...
Still have to figure out if we should have templating for aggregation
fields
2018-09-20 11:44:17 +02:00
Daniel Lee
8d1f293676
stackdriver: use group by fields to create default alias
2018-09-20 00:52:14 +02:00
Daniel Lee
408d4bda95
stackdriver: add custom User-Agent header
2018-09-18 16:07:14 +02:00
Daniel Lee
e05b86375b
stackdriver: remove hardcoding of test project name
2018-09-18 16:02:38 +02:00
Erik Sundell
edf38f040d
stackdriver: making sure we dont pass too big alignmentPeriods to the stackdriver api
2018-09-17 17:13:06 +02:00
Erik Sundell
f839d12de4
stackdriver: fix broken tests
2018-09-17 16:33:38 +02:00
Erik Sundell
109f00f584
stackdriver: adds default value for alignment period
2018-09-17 16:33:10 +02:00
Erik Sundell
71b1f7f8fd
stackdriver: use alignment period that is passed from frontend. if set to auto, use value provided from the panel. also added tests for alignment period
2018-09-17 16:30:06 +02:00
Erik Sundell
73dc7bddd0
stackdriver: use alignment that is passed from frontend in the query
2018-09-17 14:34:18 +02:00
Daniel Lee
669a1029ed
stackdriver: type rename
2018-09-14 17:46:42 +02:00
Daniel Lee
8b72853d36
stackdriver: add support for filtering to backend
2018-09-14 16:20:51 +02:00
Daniel Lee
d0a565d853
stackdriver: improve segments for group bys in query editor
2018-09-14 09:39:17 +02:00