58 Commits

Author SHA1 Message Date
ec68c65660 flatten target obj 2018-12-20 11:00:16 +01:00
a955caa9ac cleanup 2018-12-19 14:19:27 +01:00
9e558b70d7 Merge branch '14293-metric-display-names' into reactify-stackdriver
# Conflicts:
#	public/app/plugins/datasource/stackdriver/partials/query.aggregation.html
#	public/app/plugins/datasource/stackdriver/partials/query.editor.html
#	public/app/plugins/datasource/stackdriver/partials/query.filter.html
#	public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts
#	public/app/plugins/datasource/stackdriver/query_ctrl.ts
#	public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts
#	public/sass/_grafana.scss
2018-12-19 09:21:35 +01:00
9507dfe13c move template variable logic to component 2018-12-18 16:01:12 +01:00
d23d4c2ca0 rename directive 2018-12-18 11:31:11 +01:00
8430c5a491 use new generic picker 2018-12-18 11:25:13 +01:00
2ac1fe2a17 remove redundant default value 2018-12-18 10:37:46 +01:00
fe4c77a8a4 wip: add option group component 2018-12-18 10:37:46 +01:00
73b5bc680f Wrap react select component in angular directive 2018-12-18 10:36:59 +01:00
146aa7abab wip: convert angular directives to react components 2018-12-13 16:40:14 +01:00
ad55be9865 break out metric picker and filter 2018-12-13 00:16:48 +01:00
33146b248e remove redundant default value 2018-12-12 09:14:06 +01:00
ab5e5de814 wip: add option group component 2018-12-11 20:12:33 +01:00
847f5491bf Wrap react select component in angular directive 2018-12-11 13:14:55 +01:00
7021e07ab2 stackdriver: remove not used variable 2018-11-20 13:22:43 +01:00
69137e6774 stackdriver: revert project test stuff 2018-11-15 13:23:42 +01:00
e698202fae stackdriver: use new naming convention for query editor all over 2018-11-13 10:57:10 +01:00
c5af0bf1c5 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
2018-10-24 11:18:49 +02:00
09fb1760a1 stackdriver: only load default project from backend if it's not available on the target. this might happen when using gce authentication and provisioning 2018-10-22 16:08:11 +02:00
4abd04a5cf stackdriver: use correct default value for alignment period 2018-09-28 15:23:13 +02:00
ea1859a374 stackdriver: extract out filter, metric type directive 2018-09-27 14:31:39 +02:00
251bb09aed stackdriver: convert most common stackdriver units to grafana units if possible 2018-09-27 14:03:52 +02:00
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
b883d7c1f3 stackdriver: make sure service and metric display name is used instead of value when loading a saved query editor 2018-09-26 15:01:02 +02:00
2965f58838 stackdriver: use correct event name 2018-09-26 13:42:53 +02:00
1a91e0baf6 stackdriver: update aggregation and alignment before refreshing when changing metric 2018-09-26 13:22:20 +02:00
508601c28c stackdriver: use correct naming convention 2018-09-26 11:23:46 +02:00
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
3f7314831f stackdriver: wip: split metric dropdown into two parts - resource and metric 2018-09-25 16:51:12 +02:00
b6a918ba79 stackdriver: merge commit 2018-09-25 15:13:24 +02:00
7666e7bfe3 stackdriver: break out aggretation logic into its own directive and controller. also adds tests for new dropdown population logic 2018-09-25 14:42:47 +02:00
b700c6b0e4 stackdriver: populate alignment and aggregation dropdowns based on metric type and value type 2018-09-25 09:34:14 +02:00
fbc1af6cd5 stackdriver: better error handling for getLabels 2018-09-24 15:40:10 +02:00
c9ee05422f stackdriver: move getLabels from query_ctrl to datasource
so can reuse for annotation query ctrl.
2018-09-24 15:26:49 +02:00
e101bcdb13 stackdriver: fix bug when multiple projects connected to service account
We had incorrectly assumed that a service account could only be connected
to one project.
2018-09-24 10:17:06 +02:00
636d8421d0 stackdriver: refactoring - extract out filtersegments component 2018-09-24 00:59:28 +02:00
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
e05b86375b stackdriver: remove hardcoding of test project name 2018-09-18 16:02:38 +02:00
cfb8017567 stackdriver: add alignment period to query controller 2018-09-17 17:16:14 +02:00
549b4fc0ae stackdriver: adds advanced options collapse to query editor with the possibility to select secondary aggregation and alignment 2018-09-17 14:32:49 +02:00
f243da756b stackdriver: fix init labels bug 2018-09-17 11:28:10 +02:00
0b41303e10 stackdriver: improve query editor to handle no data better 2018-09-14 19:28:48 +02:00
12da19695f stackdriver: fixes in query editor 2018-09-14 17:47:39 +02:00
b30d3fb5a1 stackdriver: makes sure filter dropdown doesnt crash if clicked before values are loaded 2018-09-14 17:19:15 +02:00
dc6d025d9a stackdriver: add filters to query editor
WIP -> Backend not implemented yet.
2018-09-14 15:44:12 +02:00
9b4a25ed21 stackdriver: fixes remove option in filter 2018-09-14 11:24:02 +02:00
b5800ffea9 stackdriver: wip - filters for query editor 2018-09-14 09:39:17 +02:00
e2e95589e3 stackdriver: adds remove group by option
Adds a -- remove group by -- option to the group by
segment. When chosen it removes the group by.
2018-09-14 09:39:17 +02:00
d0a565d853 stackdriver: improve segments for group bys in query editor 2018-09-14 09:39:17 +02:00
add23d9716 stackdriver: load time series meta data for group by dropdown 2018-09-14 09:39:17 +02:00