David
bda49fcaa2
Add click on explore table cell to add filter to query ( #12729 )
...
* Add click on explore table cell to add filter to query
- move query state from query row to explore container to be able to set
modified queries
- added TS interface for columns in table model
- plumbing from table cell click to datasource
- add modifyQuery to prometheus datasource
- implement addFilter as addLabelToQuery with tests
* Review feedback
- using airbnb style for Cell declaration
- fixed addLabelToQuery for complex label values
2018-08-03 11:20:13 +03:00
Marcus Efraimsson
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
Sven Klemm
82c473e3af
document $__timeGroupAlias
2018-08-01 21:23:00 +02:00
Brice Maron
bb7e583863
fix custom variable quoting in sql* query interpolations
2018-08-01 20:32:50 +02:00
Marcus Efraimsson
9d3743774d
Merge pull request #12771 from dehrax/12224-prometheus-ds
...
Karma to Jest: prometheus datasource
2018-08-01 15:06:36 +02:00
Tobias Skarhed
951b623bd2
Change to arrow functions
2018-08-01 14:27:45 +02:00
Tobias Skarhed
af32bfebef
Add all tests to one file
2018-08-01 14:26:29 +02:00
Tobias Skarhed
790aadf8ef
Remove angularMocks
2018-08-01 10:09:05 +02:00
Tobias Skarhed
d6158bc293
All tests passing
2018-08-01 09:30:26 +02:00
Sven Klemm
43295f9c18
remove alias from postgres $__timeGroup macro
2018-08-01 08:50:19 +02:00
Tobias Skarhed
e4c2476f3c
Weird execution order for the tests...
2018-07-31 09:35:08 +02:00
Tobias Skarhed
3d4a346c66
Begin conversion
2018-07-30 13:02:08 +02:00
Sven Klemm
036647ae35
document metric column prefix in query editor
2018-07-27 17:18:45 +02:00
Sven Klemm
7905c29875
adjust metric prefix code to sql engine refactor
2018-07-27 15:34:04 +02:00
Marcus Efraimsson
27b386c91d
Merge pull request #12706 from dehrax/12224-graphite-query-ctrl
...
Karma to Jest: graphite query_ctrl
2018-07-24 19:02:50 +02:00
Tobias Skarhed
ce9b25a5ac
Remove comments
2018-07-24 18:30:29 +02:00
Marcus Efraimsson
d8d748d2aa
remove unneeded comment
2018-07-24 17:40:00 +02:00
Marcus Efraimsson
74b4d2efd5
Merge pull request #12704 from dehrax/12224-completer
...
Karma to Jest: completer
2018-07-24 17:37:43 +02:00
Tobias Skarhed
27c081349f
Remove old influx stuff
2018-07-24 17:03:58 +02:00
Marcus Efraimsson
1c4dd6f2f7
Merge pull request #12702 from dehrax/12224-influx-query-ctrl
...
Karma to Jest: influx query_ctrl
2018-07-24 16:58:01 +02:00
Tobias Skarhed
b58a7642dc
Karma to Jest
2018-07-24 15:41:58 +02:00
Tobias Skarhed
25c8233523
Begin conversion
2018-07-24 15:41:58 +02:00
Tobias Skarhed
51caf470f5
Remove influx qeury_ctrl jest, as it is already completed
2018-07-24 14:56:14 +02:00
Tobias Skarhed
d6381bed7c
Test fail depending on test order
2018-07-24 14:56:13 +02:00
Tobias Skarhed
d2f81d52d4
Karma to Jest: begin influx query_ctrl
2018-07-24 14:56:13 +02:00
Tobias Skarhed
49a8c2e0c1
Make beautiful
2018-07-24 14:56:13 +02:00
Tobias Skarhed
c0f9c06f21
Karma to Jest: completer
2018-07-24 14:56:13 +02:00
Tobias Skarhed
48ae9ec77e
Remove comments and Karm test
2018-07-24 14:35:37 +02:00
Tobias Skarhed
987a16086b
Karma to Jest
2018-07-24 14:34:37 +02:00
Tobias Skarhed
81c32780b9
Pass more tests
2018-07-24 11:27:53 +02:00
David
4d722b2177
Merge pull request #12675 from grafana/davkal/logging-datasource
...
Datasource for Grafana logging platform
2018-07-23 18:11:11 +02:00
srid12
6b071054a3
changing callback fn into arrow functions for correct usage of this ( #12673 )
2018-07-23 07:23:26 -07:00
Tobias Skarhed
bb0af52d34
Figuring out why it doesn't initialize
2018-07-23 14:54:58 +02:00
Tobias Skarhed
6b6a23ff6a
Add support for interval in query variable
...
Add range to scopedVars
Add basic tests and extract function for range vars
Add support for range query variable in createQuery
Template vars squash
2018-07-23 14:33:21 +02:00
Tobias Skarhed
46e31621b0
Add jest file
2018-07-23 14:28:17 +02:00
Mitsuhiro Tanda
fb4546b811
Id validation of CloudWatch GetMetricData
2018-07-23 17:58:54 +09:00
Daniel Lee
5129ea8f87
Merge pull request #11624 from mtanda/cw_get_metric_data
...
CloudWatch GetMetricData support
2018-07-22 21:34:07 +02:00
David Kaltschmidt
3297ae462d
Datasource for Grafana logging platform
...
- new builtin datasource plugin "Logging" (likely going to be renamed)
- plugin implements no panel ctrls yet, only ships datasource
- new models for logging data as first class citizen (aside from table
and time_series model)
- Logs as new view for Explore
- JSON view for development
Testable only against existing logish deployment.
Then test with queries like `{job="..."} regexp`.
2018-07-20 17:07:17 +02:00
David Kaltschmidt
1f74b298c4
Remove string casting for template variables in prometheus
2018-07-16 13:02:36 +02:00
David Kaltschmidt
1efe34e6cf
Make prometheus value formatting more robust
...
- prometheus datasources passes its own interpolator function to the
template server
- that function relies on incoming values being strings
- some template variables may be non-strings, e.g., `__interval_ms`,
which throws an error
This PR makes this more robust.
2018-07-16 12:40:55 +02:00
Torkel Ödegaard
c6bcf13d78
Devenv testdata dashboards ( #12615 )
...
* devenv: working on dev env setup & dashboards
* devenv: refactored testdata app to a built in datasource instead, and moved dashboards to a devenv provisioned dashboards
2018-07-16 03:12:13 -07:00
David Kaltschmidt
390090da05
Set datasource in deep links to Explore
2018-07-13 09:45:56 +02:00
David Kaltschmidt
d06b26de26
Explore Datasource selector
...
Adds a datasource selector to the Explore UI. Only datasource plugins
that have `explore: true` in their `plugin.json` can be selected.
- adds datasource selector (based on react-select) to explore UI
- adds getExploreSources to datasource service
- new `explore` flag in datasource plugins model
- Prometheus plugin enabled explore
2018-07-13 09:09:36 +02:00
Mitsuhiro Tanda
9b50c9038b
skip backend request if extended statistics is invalid. ( #12495 )
...
* check extended statistics pattern
* check extended statistics pattern
* Revert "check extended statistics pattern"
This reverts commit 52c7b1a972636d5f5729e64ae5e00e6fae329257.
* add test
* fix test
2018-07-11 11:23:38 -07:00
Mitsuhiro Tanda
18a8290c65
(prometheus) prevent error to use $__interval_ms in query ( #12533 )
...
* prevent error to use $__interval_ms in query
* add test
* prevent error to use $__interval_ms in query
2018-07-11 11:13:47 -07:00
David
9595f992b9
Merge pull request #12496 from dehrax/12224-prostgres-ds
...
Karma to Jest: 3 data sources
2018-07-10 11:13:44 +02:00
Tobias Skarhed
e51f208a49
Cleanup and remove some jest.fn()
2018-07-09 15:42:34 +02:00
Tobias Skarhed
6670acd082
Remove irrelevant tests and templateSrv stub
2018-07-09 12:52:56 +02:00
Mitsuhiro Tanda
4c59be4f5b
generate unique id when variable is multi
2018-07-09 13:11:50 +09:00
Mitsuhiro Tanda
40ed235b3b
support GetMetricData
2018-07-09 13:11:50 +09:00