Gary Wang
4a2ba2a3ab
Add min time interval in opentsdb plugin ( #31534 )
...
* #31533 Add min time interval in Opentsdb plugin
* add docs to explain min time interval in opentsdb plugin
* Update docs/sources/datasources/opentsdb.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/datasources/opentsdb.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* optimize docs
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-03-22 10:35:48 -04:00
Kevin Minehart
067bd5e604
add name of query caching feature flag in docs ( #32215 )
...
* add name of query caching feature flag in docs
* update caching config link
2021-03-22 15:10:19 +01:00
Alexander Zobnin
20bd591bea
Access control: Basic structure and functionality behind feature toggle ( #31893 )
...
Co-authored-by: Alexander Zobnin <alexander.zobnin@grafana.com>
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
Co-authored-by: Arve Knudsen <arve.knudsen@grafana.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@grafana.com>
2021-03-22 13:22:48 +01:00
Leon Sorokin
fd9dee87e4
EchoSrv: remove deprecated tti-polyfill ( #32140 )
...
* EchoSrv: remove deprecated tti-polyfill
* more cleanup
2021-03-22 10:42:02 +01:00
Jon Gyllensward
9cb865ea5c
Merge branch 'master' of https://github.com/grafana/grafana
2021-03-22 10:09:33 +01:00
Jon Gyllensward
0c73569606
Changed name of feature flag
2021-03-22 10:09:15 +01:00
dependabot[bot]
789fe97f51
Chore(deps): Bump github.com/prometheus/client_golang ( #32198 )
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.9.0...v1.10.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 09:37:54 +01:00
Torkel Ödegaard
f344d4422e
APIKeys: Fixes issue with adding first api key ( #32201 )
2021-03-22 09:26:22 +01:00
dependabot[bot]
a1c632ec13
Chore(deps): Bump github.com/aws/aws-sdk-go from 1.37.32 to 1.38.1 ( #32197 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.37.32 to 1.38.1.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.37.32...v1.38.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 09:10:03 +01:00
Tom Daly
55258f2795
32120: Add missing Redshift metrics to CloudWatch data source ( #32121 )
2021-03-22 08:58:16 +01:00
Torkel Ödegaard
5821783068
Themes: Switch theme without reload using global shortcut ( #32180 )
...
* Themes: Switch theme without reload using global shortcut
* Review updates
2021-03-22 08:48:53 +01:00
Hugo Häggmark
79f0cf7874
LibraryPanels: Changes to non readonly reducer ( #32193 )
2021-03-22 08:09:27 +01:00
Dominik Prokop
79e8db98a5
Update latest.json to 7.5.0-beta2 ( #32167 )
2021-03-19 16:28:57 +01:00
Grot (@grafanabot)
b2c3189f27
ReleaseNotes: Updated changelog and release notes for 7.5.0-beta2 ( #32160 )
...
* ReleaseNotes: Updated changelog and release notes for 7.5.0-beta2
* Release notes link update
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-03-19 15:34:14 +01:00
Owen Diehl
93d0f7163f
[Alerting] Forking LoTex ruler ( #32138 )
...
* updates alerting api to master
* skeleton for lotex ruler
* withPath helper & legacyRulerPrefix const
* forked ruler
* wires up proxy
* safeMacaronWrapper
* working proxy
* jsonExtractor
* lint
2021-03-19 10:32:13 -04:00
Hugo Häggmark
c8b59b79c3
Chore: Fix strict errors, down to 340 ( #32109 )
...
* Chore: reduces misc reducerTester strict issues
* Chore: fixes various strict errors in reducer tests for ElasticSearch
* Chore: lowers errors in AzureMonitor DataSource tests
2021-03-19 13:10:03 +01:00
Arve Knudsen
d3544d6df1
PluginManager: Increase DI priority ( #32111 )
...
* PluginManager: Increase DI priority
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* BackendPluginManager: Don't rely on Init
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* BackendPluginManager: Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Simplify code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove stale field
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Simplify code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-03-19 12:20:46 +01:00
Carl Bergquist
862cd473eb
HttpServer: Make read timeout configurable but disabled by default ( #31575 )
...
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-03-19 11:21:52 +01:00
Dominik Prokop
fb337e5c1d
GraphNG: Ignore string fields when building data for uPlot in GraphNG ( #32150 )
2021-03-19 10:43:55 +01:00
Tania B
ea484312a0
Fix loading timezone info on windows ( #32029 )
...
* Fix loading timezone info on windows
* Move setting zoneinfo to config load
* Construct proper file path
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-03-19 11:14:49 +02:00
Oscar Kilhed
f48a52e590
Remove datalink template suggestions for accessing specific fields when there are multiple dataframes. ( #32057 )
...
* Don't suggest template strings using fields when there are mutliple dataframes
* Change to use label instead of state
2021-03-19 09:28:15 +01:00
Ganesh Vernekar
8854001b67
AlertingNG: Refactor notifier to support config reloads ( #32099 )
...
* AlertingNG: Refactor notifier to support config reloads
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
* Fix review comments and make reloading of config a sync operation
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
* Fix review comments
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-03-19 09:26:00 +01:00
Joan López de la Franca Beltran
5c07df9f4b
Chore: Replace Command dispatches by explicit calls ( #32131 )
...
* Clean up GetProvisionedDashboardDataByIdQuery
* Clean up SaveProvisionedDashboardCommand
* Clean up & fix AddTeamMemberCommand usages
* Clean up & fix UpdateUserPermissionsCommand usages
* Lint imports
2021-03-19 09:14:14 +01:00
Hugo Häggmark
f8d5388758
MixedDataSource: Name is updated when data source variable changes ( #32090 )
2021-03-19 06:37:17 +01:00
Torkel Ödegaard
cb2a63b5c6
Plugin: PanelRenderer and simplified QueryRunner to be used from plugins. ( #31901 )
2021-03-18 21:40:27 +01:00
Andrew Riedel
30e5afa18c
DashboardList: Enable templating on search tag input ( #31460 )
...
* Add variable interpolation for dashlist panel.
* Update docs/sources/panels/visualizations/dashboard-list-panel.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Fix variable interpolation for dashlist panel to work with all syntax.
* Update docs/sources/panels/visualizations/dashboard-list-panel.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Fix prettier issues.
* Fix prettier issues.
* Update docs/sources/panels/visualizations/dashboard-list-panel.md
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2021-03-18 19:39:03 +01:00
Leonard Gram
66b8179967
release notes v7.3.10 and v7.4.5 ( #32135 )
2021-03-18 19:25:48 +01:00
gotjosh
cc74b1fe46
Alerting: Add database table for persisting alerting configuration ( #32042 )
...
* Alerting: Add database table for persisting alerting configuration
* Fix the linter
* Address review comments
* Don't split templates and configuration
It is already bundled together as part of a of the API so might as well
marshall it directly.
2021-03-18 18:12:28 +00:00
Leonard Gram
6c7f0fece8
latest updated to 7.4.5 ( #32132 )
2021-03-18 18:54:46 +01:00
Leonard Gram
eaa27c60ea
changelog v7.4.5 ( #32110 )
...
* changelog v7.4.5
* changelog v6.7.6 and v7.3.10
2021-03-18 18:37:48 +01:00
Joan López de la Franca Beltran
020108e32d
Chore: Tidy up Go deps ( #32127 )
2021-03-18 18:22:37 +01:00
Ivana Huckova
664b13d83e
Explore: Support full inspect drawer ( #32005 )
...
* Move InspectSubtitle to grafana/ui
* Move inspect elements to features/inspector
* Move InspectJSON and use it also in Explore
* Move and use QueryInspector
* Move all to features/inspector
* WIP Data tab implementation
* Process dataframes for explores inspector
* Clean up
* Update test
* Clean up
* Fix Explore Inspector button name
2021-03-18 17:38:09 +01:00
Dominik Prokop
a6cb9fb295
GraphNG: make sure dataset and config are in sync when initializing and re-initializing uPlot ( #32106 )
...
* Make sure dataset and uPlot config are in sync when rendering uPlot
* Tests
* Fix TS
2021-03-18 17:26:57 +01:00
Joan López de la Franca Beltran
b2e82a4f37
Login: Replace command dispatch by explicit call ( #32088 )
...
* Fix LoginService.UpsertUser user creation
* Fix API AdminCreateUser user creation
* Add missing underscore import
* Fix API CompleteInvite user creation
* Fix API SignUpStep2 user creation
2021-03-18 17:16:56 +01:00
Ivana Huckova
dfd4eccc7c
Loki: Label browser UI updates ( #31737 )
...
* UI updates for Label Browser
* Revert "UI updates for Label Browser"
This reverts commit 3d34112762
.
* UI updates for Label Browser
* Remove unused style
2021-03-18 16:28:02 +01:00
Ganesh Vernekar
0b788b5ce8
AlertingNG: Notification channel for emails ( #31768 )
...
* Email notification channel in ngalert
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Use existing templating system
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Update template and add unit tests
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2021-03-18 14:55:11 +00:00
Ottavio M. Hartman
7a9a52c317
Alerting: Enable Alert rule severity
tag to override VictorOps Severity setting ( #29392 )
...
* add severity to victorops
* Update docs, add test
* Fix spelling and lint
* fix resolving not working
* Update docs/sources/alerting/notifications.md
* Update docs/sources/alerting/notifications.md
* Update docs/sources/alerting/notifications.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/alerting/notifications.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* remove table, update supported alert notifiers
* add docs
* 7.4->7.5
* fix
* Update docs/sources/alerting/notifications.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-03-18 09:50:07 -04:00
Uchechukwu Obasi
61521216ed
Docs: updates developer guide with useful resources for windows setup ( #32075 )
...
* Docs: updates developer guide with useful resources for windows setup
* fixes small grammar nits
2021-03-18 09:39:54 -04:00
Arve Knudsen
5a0780801b
SQLStore: Close session in withDbSession ( #31775 )
...
* SQLStore: Close session in withDbSession
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* SQLStore.WithDbSession: Never use session from context
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-03-18 14:27:59 +01:00
Arve Knudsen
a2eda798e7
PluginManager: Make remaining plugin state non-global ( #32094 )
...
* PluginDashboards: Use plugin manager interface
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* PluginManager: Make panels non-global
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* PluginManager: Make apps non-global
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* PluginManager: Make static routes non-global
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* PluginManager: Make pluginTypes non-global
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-03-18 13:53:01 +01:00
Torkel Ödegaard
1454c3723d
PanelChrome: new logic-less emotion based component with no dependency on PanelModel or DashboardModel ( #29456 )
...
* WIP: Started work on a new panel chrome component
* Minor progress
* Next icons & state
* adding support for leftItems.
* fixing duplicated exports of PanelChrome.
* adding examples on loading indicator in storybook.
* adding API stability docs.
* removed dependency on stylesFactory.
* fixed docs errors.
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2021-03-18 13:22:19 +01:00
Dominik Prokop
b0d7e3dbee
GraphNG: Fix tooltip series color for multi data frame scenario ( #32098 )
2021-03-18 13:16:36 +01:00
Kyle Brandt
026bf1f9ca
SSE/InfluxDB: Change InfluxQL to work with server side expressions ( #31691 )
...
* SSE/InfluxDB: Change InfluxQL to work with server side expressions
updates the request to handle EpochMS as the time range (which is what expressions sends)
and the response to use millisecond timestamps instead of seconds.
fixes #31604
similar to https://github.com/grafana/grafana/pull/31455
2021-03-18 08:02:37 -04:00
Uchechukwu Obasi
52c1d7301f
ContextMenu: changed menu item rendering to render prop pattern ( #31993 )
...
* ContextMenu: changed menu item rendering to render prop pattern to enable manual composition of menu items
* fixes affected components
* fixes small nits
* added some changes
* used a more descriptive variable name
2021-03-18 12:58:07 +01:00
Hugo Häggmark
8b2a0e3b2c
Chore: Auto adds templating label in PRs ( #32085 )
...
* Chore: Auto adds templating label in PRs
* Fixes: formatting and json
2021-03-18 12:35:07 +01:00
Hugo Häggmark
f508a16a43
LibraryPanels: Improves the Get All experience ( #32028 )
...
* LibraryPanels: Improves Get All Api
* Refactor: using useReducer instead of useState
* Refactor: adds Pagination to UI
* Tests: adds reducer tests
* Refactor: using Observable instead to avoid flickering
* Refactor: moves exclusion to backend instead
* Chore: changing back the perPage default value
2021-03-18 11:19:41 +01:00
G Gordon Worley III
0fbe7f7f52
Docs: Add mention of preferredVisualisationType in logs datasource guide ( #31910 )
...
* Add mention of preferredVisualisationType to get Log Panel to display
The instructions don't work right now. As described, it was necessary for me to set the preferredVisualisationType to 'logs' to get the log view in Explore. I spent several hours digging around the code to figure this out, so hopefully we can save others the time with this doc update.
* Update docs/sources/developers/plugins/build-a-logs-data-source-plugin.md
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
* Update docs/sources/developers/plugins/build-a-logs-data-source-plugin.md
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
* Update docs/sources/developers/plugins/build-a-logs-data-source-plugin.md
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2021-03-18 10:44:53 +01:00
Marcus Andersson
69201bbf8c
Plugins: moving the DataSourcePicker to grafana/runtime so it can be reused in plugins ( #31628 )
...
* moved the datasource picker to grafana-runtime.
* fixed imports.
* added e2e selectors as an external package.
* adding react as external package.
* exposing dependent types for DataSourcePicker.
* added docs for ui components.
* moving component to components.
2021-03-18 10:44:26 +01:00
Denis Hilt
8fafe95728
DashNav: Pass typed event through the DashNav button onClick handler ( #32084 )
...
* Pass typed event thorough the DashNav button onClick handler
Event.stopPropagation() method needs to be called in some cases. This change addresses typescript error Type '(event: ...) => void' is not assignable to type '() => void'.
* Pass typed event thorough the DashNav button onClick handler
* Import MouseEvent from React
2021-03-18 08:23:58 +01:00
Dimitris Sotirakis
2d72b4e69e
Prometheus: Convert Prometheus query response to dataframes ( #31948 )
...
* Convert Prometheus query response to dataframes
* Add parseResponse tests
* Fixed lint imports
* Force use UTC as timezone in timeVector
* Updated test to check timezone
2021-03-18 08:40:26 +02:00