Ryan McKinley
3f15170914
Refactor: move some files to @grafana/data ( #17952 )
...
* moving to data WIP
* more refactoring
* add missing test
* mock full path
* remove sinon from grafana-ui
2019-07-06 08:05:53 +02:00
Tobias Skarhed
0b9de3f761
noImplicitAny: Lower count to about 3450 ( #17799 )
2019-06-27 15:56:02 +02:00
Ryan McKinley
1d7bb2a763
DataSourceApi: convert interface to abstract class ( #16979 )
...
* DataSourceApi as class
* add diff signature
* Prometheus: moved directUrl to jsonData
2019-05-10 11:37:43 +02:00
Ryan McKinley
4e54509dde
Refactor: improvements to PanelQueryRunner ( #16678 )
...
merged DataQueryOptions + DataRequestInfo info: DataQueryRequest
2019-04-18 21:56:27 -07:00
Johannes Schill
4606a6a894
Chore: Lock dependencies ( #16644 )
...
* fix: Lock version of dependencies
* fix: Lock version of devDependencies
* fix: Lock down grafana/ui npm versions + regenerate lockfile
* fix: Back some versions i tried to bump
* fix: Bump react and react-dom to latest
* chore: Remove types/react from resolutions
* fix: Lock eventemitter3 version in package.json
2019-04-17 12:43:00 +02:00
Daniel Lee
1ecd70e2dd
stackdriver: fixes #15182
...
For the filter expression, a better default is to
interpolate multi variables as a regex rather than
the default globbing pattern.
Also, uses the real TemplateSrv class rather than
stubbing it in the tests.
2019-02-05 15:42:59 +01:00
Daniel Lee
0302c7afa7
stackdriver: add some more typings
2019-02-05 15:28:03 +01:00
Robert Edström
9b6746d808
Change primaryAggregation to crossSeriesReducer in Stackdriver
2019-01-29 19:11:54 +01:00
Erik Sundell
b8c2ba3320
add typing for metric descriptor
2019-01-08 14:03:52 +01:00
Erik Sundell
49144f07e4
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/app/plugins/datasource/stackdriver/specs/query_aggregation_ctrl.test.ts
2019-01-07 13:59:36 +01:00
Erik Sundell
b385c105fe
remove linebreak
2019-01-07 11:26:04 +01:00
Erik Sundell
eea91d2885
remove redundant default value
2019-01-07 11:26:03 +01:00
Simon Podlipsky
c39dc1fb15
Some cleanup
2019-01-05 15:25:07 +01:00
Erik Sundell
ec68c65660
flatten target obj
2018-12-20 11:00:16 +01:00
Erik Sundell
33146b248e
remove redundant default value
2018-12-12 09:14:06 +01:00
Erik Sundell
69137e6774
stackdriver: revert project test stuff
2018-11-15 13:23:42 +01:00
Erik Sundell
e698202fae
stackdriver: use new naming convention for query editor all over
2018-11-13 10:57:10 +01:00
Erik Sundell
bb1f79ecdc
stackdriver: rename query function
2018-11-09 13:55:16 +01:00
Erik Sundell
cbb663015e
stackdriver: move response parsing to datasource file
2018-11-09 13:55:08 +01:00
Erik Sundell
7ccce76b80
stackdriver: return values for services and metric types
2018-11-09 13:55:08 +01:00
Erik Sundell
6a447a24fb
stackdriver: don't set project name in query response since default project is now loaded in its own query
2018-10-25 14:16:01 +02:00
Erik Sundell
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
Erik Sundell
dd745e0cf0
stackdriver: prevent backend query from being made when there are not yet any defined targets
2018-10-22 16:12:22 +02:00
Erik Sundell
5deba92d05
stackdriver: fix failing tests
2018-10-22 16:12:22 +02:00
Erik Sundell
ae8a765190
stackdriver: improve error handling
2018-10-22 16:12:22 +02:00
Erik Sundell
a56c5841e9
stackdriver: improve error handling in the datasource
2018-10-22 16:11:17 +02:00
Erik Sundell
569fe2327e
stackdriver: remove debug log
2018-10-22 16:11:17 +02:00
Erik Sundell
fa1d225743
stackdriver: fix failing test
2018-10-22 16:11:17 +02:00
Erik Sundell
b9cb4649bb
stackdriver: get default project from backend. also ensure default project could be retrieved when authentication type is gce
2018-10-22 16:11:17 +02:00
Erik Sundell
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
Erik Sundell
9fb1d3a9a6
stackdriver: only load project name if it's not already stored in the ds info json
2018-10-22 16:03:14 +02:00
Erik Sundell
dd9e9ed419
stackdriver: make backend query a pure test datasource function
2018-10-22 16:03:13 +02:00
Erik Sundell
412a1f6d99
stackdriver: wip - return metric descriptors in the format of tablew
2018-10-22 16:03:13 +02:00
Erik Sundell
b2932058c7
stackdriver: only add unit to resonse obj if it has a value
2018-10-19 10:42:57 +02:00
Erik Sundell
d1740f090a
stackdriver: make sure unit is not returned to the panel if mapping from stackdriver unit to grafana unit can't be made
2018-10-18 16:42:08 +02:00
Daniel Lee
6fce178ec7
stackdriver metric name fix. Fixes #13562
...
Sets metric name even when the metric does not have a displayName field. Closes #13562 .
2018-10-08 15:34:28 +02:00
Daniel Lee
cf0189ab1a
stackdriver: no tags for annotations (yet)
...
fixes glitch where an empty tag shows up
2018-09-28 19:17:34 +02:00
Erik Sundell
fc1e214987
stackdriver: add relevant error message for when a user tries to create a template variable
2018-09-28 16:36:43 +02:00
Daniel Lee
ea1859a374
stackdriver: extract out filter, metric type directive
2018-09-27 14:31:39 +02:00
Erik Sundell
92f50ca384
stackdriver: add unit tests to resolve unit function
2018-09-27 14:24:28 +02:00
Erik Sundell
251bb09aed
stackdriver: convert most common stackdriver units to grafana units if possible
2018-09-27 14:03:52 +02:00
Erik Sundell
b724ca5b93
stackdriver: pass interval from panel to backend
2018-09-27 10:42:28 +02:00
Erik Sundell
3f7314831f
stackdriver: wip: split metric dropdown into two parts - resource and metric
2018-09-25 16:51:12 +02:00
Daniel Lee
c9ee05422f
stackdriver: move getLabels from query_ctrl to datasource
...
so can reuse for annotation query ctrl.
2018-09-24 15:26:49 +02:00
Daniel Lee
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
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
e05b86375b
stackdriver: remove hardcoding of test project name
2018-09-18 16:02:38 +02:00
Erik Sundell
cfb8017567
stackdriver: add alignment period to query controller
2018-09-17 17:16:14 +02:00
Erik Sundell
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
Daniel Lee
0b41303e10
stackdriver: improve query editor to handle no data better
2018-09-14 19:28:48 +02:00