Diana Payton
b4289a48f1
Docs: Update troubleshoot-queries.md ( #27078 )
...
* Update troubleshoot-queries.md
* Update troubleshoot-queries.md
2020-08-19 10:38:41 -07:00
Arve Knudsen
d0621b6054
Drone: Fix order of steps ( #27076 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-19 17:20:15 +02:00
Kyle Brandt
660510084c
AzureAnalytics: Use fillmode Null with format as time series ( #27054 )
...
previously was using fillmode previous, which is not what we want here.
Also we do not have fill missing with this data source anyways
Fixes #27013
2020-08-19 10:42:54 -04:00
kay delaney
a1f90521a0
CloudWatch Logs: Move query response stats to appropriate FrameMeta property ( #26732 )
...
* CloudWatch Logs: Move query response stats to appropriate FrameMeta property
2020-08-19 15:18:04 +01:00
Kyle Brandt
96babf1268
Alerting: copy queryType prop to tsdb.Query ( #27053 )
...
fixes #27048
2020-08-19 10:03:39 -04:00
Arve Knudsen
1717476984
Server: Add protocol to Cfg ( #27071 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-19 14:39:13 +02:00
Arve Knudsen
3b248fccc8
Drone: Add Windows PR pipeline ( #26589 )
...
* Drone: Add Windows PR pipeline
* CI: Add Dockerfile for WiX image
2020-08-19 11:46:36 +02:00
Arve Knudsen
0e1e85656b
InfluxDB: Upgrade InfluxDB in devenv ( #26983 )
...
* InfluxDB: Upgrade InfluxDB in devenv
* InfluxDB: De-export symbols
* InfluxDB: Remove unused code
* devenv: Make InfluxDB version configurable
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-19 09:23:11 +02:00
Marcus Olsson
689ca1be87
Add guide for sharing plugins ( #27043 )
...
* Add guide for sharing plugins
* Fix review comments
2020-08-19 09:01:07 +02:00
Hugo Häggmark
0755390286
MixedDatasource: Shows retrieved data even if a data source fails ( #27024 )
...
* MixedDatasource: Shows data for working data sources and error for erroneous
* Tests: remove funky import
* Tests: fixes types
2020-08-19 08:52:40 +02:00
Ivana Huckova
3d18c4d614
Pass scoped vars to create label ( #27047 )
2020-08-19 08:29:23 +02:00
Ivana Huckova
eafc132d3d
Loki: Add scopedVars support in legend formatting for repeated variables ( #27046 )
...
* Pass scoped vars to createMetricLabel
* Add tests
* Refacotr
* Update tests
* Update test
2020-08-19 08:28:50 +02:00
Wojciech Sromek
918fb4d02a
Docs: Example of provisioning InfluxDB v2 datasource ( #27045 )
...
* Docs: Example of provisioning InfluxDB v2 datasource
* Apply suggestions from code review
Suggested improvements
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-08-18 08:08:09 -07:00
Marcus Olsson
dd0b0fe0b1
Add instructions on how to format multiple variables ( #27032 )
...
* Add instructions on how to format multiple variables
* Update docs/sources/developers/plugins/add-support-for-variables.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Fix review comment
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-08-18 16:42:24 +02:00
Arve Knudsen
a2fbffe48a
Server: Add health check route ( #26999 )
...
* Server: Add health check route
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Server: Remove health check middleware
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-18 14:58:08 +02:00
Zoltán Bedi
f33158dcdf
Prometheus: parse value as number when label is le ( #26375 )
...
* Prometheus: parse value as number when label is le
* Convert prometheus table value back to string for modify query
2020-08-18 14:47:25 +02:00
Arve Knudsen
7896836deb
Chore: Reduce TSDB Go code complexity ( #26401 )
...
* tsdb: Make code less complex
2020-08-18 14:43:18 +02:00
kay delaney
6145bf77cf
UI/RefreshPicker: Change base from PureComponent to Component ( #27031 )
2020-08-18 08:12:14 +02:00
kay delaney
19930ee301
Dashboard: Panel menu no longer lingers ( #26974 )
...
Closes #26306
2020-08-17 22:54:48 +01:00
Kirchen99
5da3276db1
Dashboard: Use same min refresh interval fallback in the API as in provisioning ( #25926 )
...
* Dashboard: Solve the discrepancy between provisioning and the API, Handle min refresh interval when creating/updating dashboard via API
* Docs: Add refresh field in the example dashboard http api docs
* Update create dashboard API docs
Add refresh field in the create dashboard example response
* Fix create dashboard API docs
* Fix create dashboard API docs
* Update docs/sources/http_api/dashboard.md
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-08-17 12:00:10 -07:00
Sean Lafferty
900eb8070e
Proxy: Fix updating refresh token in OAuth pass-thru ( #26885 )
...
* Handle updating refresh token in oauth pass-thru
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-17 18:38:32 +02:00
Arve Knudsen
9f1165b1f6
Drone: Remove intra pipeline caching commands ( #27034 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-17 18:01:40 +02:00
Marcus Olsson
585543d707
Add guide on adding support for variable queries ( #26810 )
...
* Add guide on adding support for variable queries
* Fix review comments
* Update instruction for custom editor
* Update docs/sources/developers/plugins/add-support-for-variables.md
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
* Update docs/sources/developers/plugins/add-support-for-variables.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/developers/plugins/add-support-for-variables.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Fix review comments
* Fix review comments
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-08-17 12:00:33 +02:00
Marcus Olsson
7319527f71
Improve validation for grafanaDependency ( #26936 )
2020-08-17 11:59:43 +02:00
Marcus Olsson
338943d349
Add skipDataQuery to plugin.json schema ( #26940 )
...
* Add skipDataQuery to plugin.json schema
* Fix typo
2020-08-17 11:31:25 +02:00
Arve Knudsen
be3bf80749
InfluxDB: Upgrade to latest InfluxDB Go client ( #27021 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-17 08:32:26 +02:00
Hugo Häggmark
bd75adf515
Templating: Fixes so texts show in picker not the values ( #27002 )
2020-08-17 07:04:27 +02:00
Arve Knudsen
50ebbb625e
InfluxDB: Upgrade Go client, use data source HTTP client ( #27012 )
...
* InfluxDB: Upgrade Go client, use data source HTTP client
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unnecessary Close
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-14 18:40:02 +02:00
Sofia Papagiannaki
6609ddb082
Docs: document TLS configuration for generic OAuth ( #27006 )
...
* Docs: document TLS configuration for generic OAuth
* use SSL/TLS term
* Update docs/sources/auth/generic-oauth.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/auth/generic-oauth.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-08-14 19:22:39 +03:00
Emil Tullstedt
b68634fbb4
Tests: Batch of GoConvey to Testify conversions ( #27008 )
2020-08-14 14:43:25 +02:00
Sofia Papagiannaki
7ad1e3663c
Playlists: Remove API validation for empty playlists and remove redundant API call ( #26982 )
...
* Remove validation from empty playlists
* Remove redundant API call
Frontend used to call /api/playlists/:id/items directly after /api/playlists/:id but items are already included in the first response
2020-08-14 11:59:50 +03:00
Ivana Huckova
bb0f17ce59
Loki: Fix refresh on time range change for template variable queries ( #26968 )
...
* Pass timerange and aadd tests
* Update test
2020-08-14 10:33:37 +02:00
Ivana Huckova
9698edbb13
Docs: Sort log result documentation ( #26898 )
...
* Add documentation for sort log result
* Update docs/sources/features/explore/index.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/features/explore/index.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/features/explore/index.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Capitalize deduping options
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-08-14 10:15:12 +02:00
Ivana Huckova
1915d10980
Remove brackets from escaped value if just 1 value ( #26995 )
2020-08-13 19:15:34 +02:00
Zoltán Bedi
aae25c5308
Prometheus: add $__rate_interval variable ( #26937 )
...
* Add rate interval variable to prometheus data source
* Add tests + auto complete
* Fix prometheus tests
* Add doc
* Modify test title
* Modify kbn method name after merge
2020-08-13 18:58:40 +02:00
Kyle Brandt
f9f60c9193
AzureMonitor: map more units ( #26990 )
...
add BitsPerSecond and Seconds
2020-08-13 12:57:16 -04:00
Arve Knudsen
c63bbbaec3
InfluxDB: Close Flux query results ( #26917 )
...
* InfluxDB: Drop ctxhttp usage
* InfluxDB: Clean up code
* InfluxDB: Close query results
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-13 17:50:53 +02:00
Arve Knudsen
d823b26b06
Drone/CircleCI: Upgrade build pipeline tool ( #26854 )
...
* Drone/CircleCI: Upgrade build pipeline tool
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Upgrade build pipeline tool in Docker scripts
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-13 16:04:34 +02:00
Joan López de la Franca Beltran
ef631582ba
Users: Improve conflict error handling ( #26958 )
...
* API: Improve error handling (#26934 )
* New ErrUserAlreadyExists error has been introduced
* Create user endpoint returns 412 Precondition Failed on ErrUserAlreadyExists errors
* Make ErrUserAlreadyExists error message clearer
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
* Use errors.Is instead of equality comparator on AdminCreateUser handler
* Improve sqlstore/user test definition
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve sqlstore/user tests for ErrUserAlreadyExists cases
* Remove no needed string fmt and err declaration on sqlstore/user tests
* Code improvements for sqlstore/user tests
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use err.Error() instead of sentinel error value on AdminCreateUser
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add ErrUserAlreadyExists handling for signup & org invite use cases
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-13 14:38:54 +02:00
Torkel Ödegaard
5398ef1103
Templating: Fixed recursive url update issue for textbox variable ( #26981 )
...
* Templating: Fixed recursive url update issue for textbox variable
* Updated link
* updated e2e
2020-08-13 14:38:27 +02:00
Ivana Huckova
eeeea7fb8d
Explore: Capitalize dedup strategy in radio buttons for consistency ( #26961 )
...
* Update LogsDedupStrategy enum to keep consistent with radio button capitalization
* Revert "Update LogsDedupStrategy enum to keep consistent with radio button capitalization"
This reverts commit 0b05cd4e00
.
* Capitalize dedup strategy in radio buttons
2020-08-13 11:40:58 +02:00
Emil Tullstedt
d664853179
Tests: Change util GoConvey tests to use testify ( #26724 )
2020-08-13 11:10:48 +02:00
Pratik Raj
3bed3248d9
Use --no-cache-dir
flag to pip
in Dockerfiles, to save space ( #26978 )
...
Use `--no-cache-dir` flag to `pip` in Dockerfiles, to save space
Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2020-08-13 10:04:31 +02:00
Arve Knudsen
9f159c5e3d
grafana-cli: Fix file path processing, returning of errors ( #26954 )
...
* grafana-cli: Fix file path processing, returning of errors
2020-08-13 09:38:05 +02:00
Zoltán Bedi
75e14aa120
Chore: Let kbn util infer types ( #26907 )
...
* Chore: Let kbn util infer types
Type fixes where needed
* Address review comments + test fix
* Modify kbn method and property names to pascalCase
2020-08-13 09:35:32 +02:00
Lucas Raschek
6b1b52b704
Templating: Fixes renaming a variable using special characters or same name ( #26866 )
...
* Fix variable editor name-input bug
You couldn't delete an invalid character after typing it into the name-input field.
While investigating the issue turned out to be bigger, as there was a problem with
valid characters too. (See test scenarios below)
The fix seems to be, to remove an unnecessary check in the `changeVariableName`
action. There is theoretically now the possibility, that the `changeVariableName`
action is called with the same name, as the variable is already, but practically
there seems no possibility, that this could happen. A test, which checks that, had
to be removed too.
Test scenarios:
* 1st Scenario
1. Type "@"
2. Try deleting it
* 2nd Scenario
1. Type "w"
2. delete "w"
3. Try typing "w" again
Fixes #26562
* Fix bug when updating existing variable
2020-08-13 06:52:32 +02:00
Nitesh Koushik S
18c2aaa10e
Docs: Adding reference for the default database ( #26950 )
...
Adding reference for the default database type SQLite
2020-08-12 12:35:24 -07:00
hebbet
2755db6b4b
Docs: Remove "currently in beta" ( #26960 )
...
7.1 is stable
2020-08-12 12:33:41 -07:00
martinrw
b1625955fe
Docs: Mention httpMode in the docs ( #26964 )
2020-08-12 12:30:43 -07:00
Kyle Brandt
f432e153ca
Dataframe/Alerting: to tsdb.TimeSeriesSlice - accept "empty" time series ( #26903 )
...
this is in order to trigger no data when used with alerting.
fixes #26897 .
This is perhaps better solved in the SDK but that needs more thought and is tracked in grafana/grafana-plugin-sdk-go#214
2020-08-12 12:30:45 -04:00