Polina Boneva
b14263af45
Dashboard: Remove old panel code and leave only new panel design ( #74196 )
...
* delete PanelHeader
* PanelHeaderMenuItem is only used in PageHeader
* PanelHeaderCorner only used by PanelEditorTableView
* PanelHeaderMenuTrigger not used anywhere
* PanelHeaderMenuWrapperNew is PanelHeaderMenuWrapper, old one is deleted
* remove newPanelChromeUI from test
* delete feature flag newPanelChromeUI
* PanelHeaderMenuWrapperNew is PanelHeaderMenuWrapper, old one is deleted
2023-09-12 11:54:41 +03:00
Andres Martinez Gotor
1a8a19a9ed
Chore: Avoid stopping plugin ( #74654 )
2023-09-12 10:34:12 +02:00
Yuri Tseretyan
6f785f7269
Alerting: Support for single rule and multi-folder rule export ( #74625 )
2023-09-11 13:13:02 -04:00
Brendan O'Handley
a2e2ba695e
Prometheus: Turn new auth component feature toggle on by default ( #74405 )
...
* turn auth feature toggle on by default
* fix e2e test
* fix e2e test
* fix e2e test
2023-09-11 13:12:21 -04:00
Dave Henderson
ce1169f8b7
Tracing: Support remote, rate-limited, and probabilistic sampling in tracing.opentelemetry config section ( #73587 )
...
* tracing: Support remote sampling server
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
* Update docs/sources/setup-grafana/configure-grafana/_index.md
* Update docs/sources/setup-grafana/configure-grafana/_index.md
* Satisfying the doc-validator check
* satisfy prettier
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* back out unnecessary change
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
---------
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2023-09-11 12:13:29 -04:00
Bryan Huhta
0f552053e9
Pyroscope: add public catalog description ( #74630 )
...
* Add readme
* Fix wrong link
* Update public/app/plugins/datasource/grafana-pyroscope-datasource/README.md
Co-authored-by: Dmitry Filimonov <dmitry.filimonov@grafana.com >
* Prettier fix
* Update plugins test
* Prettier fix
* updateSnapshotFlag = false
---------
Co-authored-by: Dmitry Filimonov <dmitry.filimonov@grafana.com >
2023-09-11 18:06:34 +02:00
Yuri Tseretyan
dce492642a
Alerting: Export of alert rules in HCL format ( #73166 )
...
* import hashicopr/hcl/v2
* add hcl package and export to HCL
* annotate export structs
---------
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com >
2023-09-11 11:48:23 -04:00
Andre Pereira
485208c8e3
Plugins: Fix streaming support ( #74680 )
...
Fix streaming support in backend
2023-09-11 17:59:29 +03:00
Andrew Hackmann
c8a0ebe0e8
Azure Monitor/body close logs an error bug ( #74632 )
...
on body close causes logs an error even if no error. also changed to warning similar to the rest of grafana
2023-09-11 09:02:44 -05:00
lean.dev
5e0b20266e
Licensing: Pass func to update env variables when starting plugin ( #74620 )
2023-09-11 09:33:10 -03:00
Will Browne
e855efb13d
Plugins: Move store and plugin dto to pluginsintegration ( #74655 )
...
move store and plugin dto
2023-09-11 13:59:24 +02:00
Marcus Efraimsson
edc34fc836
Instrumentation: Improve instrumentation for database migrations ( #74659 )
2023-09-11 14:10:21 +03:00
Marcus Efraimsson
8ee43f3705
Instrumentation: Add status_source label to request metrics/logs ( #74114 )
...
Ref #68480
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com >
2023-09-11 12:13:13 +02:00
Jo
77e4d477e5
Auth: Optimize auth token operations ( #74602 )
...
* add token count
* wip
* user count method for tag reporting
* remove non functioning mysql clientFoundRows check
* Update pkg/services/auth/authtest/testing.go
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com >
* add user ID guard
---------
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com >
2023-09-11 10:24:57 +02:00
Ryan McKinley
85e629dc7d
Chore: make GPRCServerService private ( #74612 )
2023-09-08 12:44:18 -07:00
Yuri Tseretyan
99fd7b8141
Alerting: Update provisioning to validate user-defined UID on create ( #73793 )
...
* add ValidateUID to util
* provisioning to validate UID on rule creation
---------
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com >
Co-authored-by: Alexander Weaver <weaver.alex.d@gmail.com >
2023-09-08 15:09:35 -04:00
ismail simsek
3107459e57
Prometheus: Handle the response with different field key order ( #74567 )
...
* Handle the response with different field key order
* More unit tests to cover edge cases
* Cover more edge cases
* make it simpler
* Better test inputs
2023-09-08 19:58:05 +02:00
Todd Treece
699c5c1e2e
Chore: Fix grafana-apiserver config ( #74608 )
2023-09-08 17:12:12 +03:00
Isabella Siu
270ef4412d
CloudWatch and Redshift: update toggles to public preview ( #74577 )
2023-09-08 10:11:37 -04:00
Sofia Papagiannaki
9fcee9b206
Nested folders: Fix folder hierarchy in folder responses ( #74516 )
...
Nested folders: Fix hierarchy in folder response
2023-09-08 10:43:41 +03:00
Ashley Harrison
a7425f875e
Browse Dashboards: Update docs to remove reference to General folder ( #74528 )
...
* update documentation to remove mention of General folder
* update swagger-tags
2023-09-08 03:57:16 +01:00
Yuri Tseretyan
0df3647367
Alerting: extend rules export API to filter by folder and group ( #74423 )
...
update endpoint `GET /api/v1/provisioning/alert-rules/export` to accept query parameters `folderUid` and `group`
2023-09-07 17:34:32 -04:00
Kyle Brandt
5cc737bb24
SSE: Put data source query grouping behind feature flag ( #74551 )
...
change was originally merged in commit: 720d716 via PR: https://github.com/grafana/grafana/pull/72935 with no flag
flag is: sseGroupByDatasource
2023-09-07 23:02:07 +03:00
Leanna Shippy
ebdd2a72a8
Loki: Fix typo in Loki logger error message ( #73860 )
...
Fix loki logger error message
2023-09-07 15:06:49 -04:00
Ivana Huckova
49bd93aa2b
Elasticsearch: Adjust logging to follow convention ( #74554 )
...
* Elasticsearch: Adjust naming in logging according to convention
* Log response parsing per response
* Update
* Fix logging of errors when no response
* Add path to error loggigng
* Update pkg/tsdb/elasticsearch/response_parser.go
2023-09-07 18:15:24 +02:00
Eric Leijonmarck
61e96f8412
Auth: Move apikey service from userSignedIn to identity.Requester interface ( #74323 )
...
change from userSignedIn to identity.Requester interface
2023-09-07 16:54:38 +01:00
Sven Grossmann
d14851c877
Loki: Adjust to logging convention ( #74531 )
...
* adjust Loki to logging convention
* Fix call resource logging
* Update dataquery
* Update
* Remove redundant logging
* Fix TODO
* Rename action to stage and use variables
* `resp` might be `nil`
* `resp` might be `nil` here as well
* change to `statusCode`
* use correct logger
* also here
* add query information to logging
---------
Co-authored-by: Ivana Huckova <ivana.huckova@gmail.com >
2023-09-07 17:09:24 +02:00
Ivana Huckova
408d0265ce
Elasticsearch: Improve backend instrumentation of CallResource calls ( #74530 )
...
Elasticsearch: Improve backend instrumentation of calls
2023-09-07 13:54:31 +02:00
Ivana Huckova
51391a762b
Elasticsearch: Improve backend instrumentation of QueryData calls ( #74172 )
...
* Elasticsearch: Improve backend instrumentation of QueryData calls
* Add fromAlert
* Fix tests, move logger and context to struct
* Add instrumentation for processing response
* Move log for sending request closer to sending request
* Update
* Fix logging, improved messages, fix printing of queries
* Update log text
* Fix tests
* Fix lint
* Update logging to follow our guidelines
* Remove key-value pairs from logs that are going to be passed from instrumentation
* Update pkg/tsdb/elasticsearch/elasticsearch.go
2023-09-07 13:54:16 +02:00
Sven Grossmann
7e01dde762
Logging: Add WithContextualAttributes to pass log params based on the given context ( #74428 )
...
* suggestion to use `RegisterContextualLogProvider`
* add `pluginId`
* change to `WithContextualAttributes`
* move approach to instrumentation.go
* improve `WithContextualAttributes`
* unexport consts
* typo
* remove comment
* add `nil` check
2023-09-07 13:13:34 +02:00
Ashley Harrison
ebe13a53f7
Browse Dashboards: Split new browse UI from nested folders backend ( #74435 )
...
* create new feature toggle + start to put stuff behind it
* block move, tidy up interfaces
* fix new/folder actions buttons
* show warning when deleting library panels/alert rules + run i18n:extract
* pseudo
* update unit tests
* pass alert in description
2023-09-07 11:41:00 +01:00
Jo
a6aa8f46d1
Auth: Silence no permissions warning ( #74477 )
...
* silence no permissions warning
* change warning to debug
2023-09-07 10:22:31 +02:00
jordanefillatre
b8b5d2fed8
CloudWatch: Add AWS/S3 replication metrics ( #74416 ) ( #74418 )
...
Co-authored-by: Isabella Siu <sakurablossom@blueblueworld.com >
2023-09-06 15:10:17 -04:00
Kristin Laemmert
496cf3d0da
server target command ( #74408 )
...
feat: add grafana server target command
2023-09-06 13:11:57 -04:00
Oscar Kilhed
579709c7a6
MSSQL: Add support for MI authentication to MSSQL ( #73597 )
...
* Add support for MI authentication to MSSQL
This adds support for managed identity authentication for MSSQL managed
instances running in Azure.
Co-authored-by: baldm0mma <jev.forsberg@grafana.com >
2023-09-06 18:27:19 +02:00
Kristin Laemmert
6ce4af7840
chore: remove unused feature flag ( #74460 )
...
This commit removes the validateDashboardsOnSave feature flag that is currently not in use.
Closes #70022
2023-09-06 11:25:44 -04:00
Matias Chomicki
9ceaeed489
toggleLabelsInLogsUI: enable by default ( #74342 )
...
* GA toggleable labels
* Logs integration: update readme with new features
* Build a logs data source: update docs with the new interface
* Plugin docs: update example function signatures and arguments
* Plugin docs: update modifyQuery function names
* Formatting
* Remove character
* Remove `expr` from docs
* Plugin docs: improve code
* Plugin docs: further code improvements
2023-09-06 15:32:48 +02:00
linoman
0e8f19ca6a
Auth: Reduce restriction with non-user accounts ( #74397 )
...
* Reduce restrictions with non-user accounts
* Revert restrictions on anonymous accounts
* Change log level from warning to debug
* Change log messages to upper case
2023-09-06 13:37:54 +02:00
Artur Wierzbicki
d50ccd6741
Chore: AuthN/IdentitySynchronizer interface/impl compatibility wire fix ( #74400 )
...
authn/identitysynchronizer fix
2023-09-06 15:10:07 +04:00
Santiago
93b9f9b537
Alerting: Use interfaces for the Alertmanager ( #73900 )
2023-09-06 07:59:29 -03:00
linoman
13f4382214
Auth: Implement requester interface in access control module ( #74289 )
...
* Implement requester interface in the access control module
2023-09-06 11:16:10 +02:00
Kristin Laemmert
fa229661e8
chore: use setting.Dev in place of "development" string ( #74391 )
...
chore: use development variable instead of string
2023-09-05 13:16:14 -04:00
Kristin Laemmert
cc1205d6ba
fix: revert module server initialization from CLI ( #74386 )
...
not-a-revert reversion of module server initialization
2023-09-05 11:45:56 -04:00
Alexander Weaver
5c9aeaef41
Alerting: Do not exit if Redis ping fails when using redis-based Alertmanager clustering ( #74144 )
...
Do not fail redis peer construction if ping fails
2023-09-05 10:43:13 -05:00
Santiago
7a34cdb3a2
Alerting: Add configuration options to migrate to an external Alertmanager ( #71318 )
...
* add configuration options to .ini file and parse them
* updates on config options, add external AM config to the main config struct
* separate external AM configs from general alerting configs, naming
* comments about usage of tenantID in basic auth & not using config options yet
2023-09-05 11:24:35 -03:00
Giuseppe Guerra
2e67a9463d
Plugins: Refactor kvstore usage in signing keys and angular patterns ( #73154 )
...
* Initial refactoring work for plugins kvstore
* Replace implementations for keystore and angularstore
* Cleanup
* add interface check
* lint
* fix storeKeyGetter not being called in namespacedstore set
* Fix tests
* Comments
* Add tests
* Fix invalid cap in ListKeys when store is empty
* Update docstrings
* Add setLastUpdatedOnDelete
* Renamed DefaultStoreKeyGetterFunc, add TestDefaultStoreKeyGetter
* Sort imports
* PR review: removed last_updated key
* PR review: Removed setLastUpdatedOnDelete
* Re-added relevant tests
* PR review: Removed SingleKeyStore
* PR review: Removed custom marshaling support
* Renamed marshaler.go to marshal.go
* PR review: removed unused interfaces
* PR review: Moved marshal into namespacedstore.go
* PR review: removed storekeygetter
* Removed unused file cachekvstore.go
* Renamed NamespacedStore to CacheKvStore
* removed todo
2023-09-05 16:20:42 +02:00
Andrew Hackmann
41ca13418b
AzureMonitor: Remove infra client ( #74113 )
...
remove infra client from azure monitor
2023-09-05 09:00:21 -05:00
Torkel Ödegaard
d82a3c9fc6
DashboardScene: Repeat panel by variable ( #74294 )
...
* Progress
* think this a bad approach
* Scene panel repeats looking good
* Update
* update
* Update
* Use key instead for inspect/view
* refactorings to improve tests
* Update
* More tests
* Update
* added support for key / value variables
* Update
* Fixes
* remove log
* Update
* Removed old gdev templating dashboard and added new and improved one
* Update
* Added repeating panels coded demo
* Update to latest scenes lib
* review feedback fixes
* update
* Sync schema
2023-09-05 13:51:46 +02:00
Ieva
58efa49933
Chore: remove IsDisabled method for access control ( #74340 )
...
remove IsDisabled method for access control, clean up tests
2023-09-05 11:04:39 +01:00
Serge Zaitsev
7197ed9fbb
Fix: avoid panics on duplicate metrics registration ( #74359 )
2023-09-05 10:02:11 +02:00