William Wernert
d359591dac
Alerting: Support recording rule struct in provisioning API ( #87849 )
...
* Support record struct in provisioning API
* Update api spec
* Use record field
* Restrict API endpoints following toggle
* Fix swagger spec
* Add recording rule validation to store validator
2024-06-06 21:05:02 +03:00
Dave Henderson
e21d357d67
chore: Updating linter, fixing some new warnings ( #88863 )
2024-06-06 13:01:27 -04:00
Andreas Christou
c9778c3332
AzureMonitor: Prometheus exemplars support ( #87742 )
...
* Update types
* Mark datasource as supporting traces
* Add logic to transform exemplar query to traces query
* Render appropriate editor
* Run trace query for exemplars
* Refactor out common functions
- Add function to retrieve first/default subscription
* Add route for trace exemplars
* Update logic to appropriately query exemplars
* Update traces query builder
* Update instance test
* Remove unneeded import
* Set traces pseudo data source
* Replace deprecated function calls
* Add helper for setting default traces query
* Don't show resource field for exemplars query
* When resetting operation ID for exemplars set query to default
- Update tests
* Update query header to appropriately set the service value
* Fix response frame creation and update tests
* Correctly select resource
* Convert subscriptionsApiVersion to const
* Add feature toggle
2024-06-06 17:53:17 +01:00
Diego Augusto Molina
ae84c5fef9
Unified Storage: Fix Entity Server unconditionally starting ( #88857 )
...
fix Entity Server unconditionally starting
2024-06-06 12:17:46 -03:00
Will Browne
7d8722b561
API server: Add shutdown func to interface ( #88827 )
...
add shutdown func to interface
2024-06-06 15:18:54 +01:00
Timur Olzhabayev
8690e97c92
Chore: disable proxy trailing slash keep by default ( #88842 )
...
disable proxy trailing slash keep by default
2024-06-06 16:28:11 +03:00
Karl Persson
d3b06f09ae
Users: remove unused store function ( #88784 )
2024-06-06 11:43:51 +02:00
Misi
4f2a9a47f3
Auth: Add org to role mappings support to Okta integration ( #88770 )
...
* Add org mapping support to Okta
* Update docs and configs
* Prettier docs
* Apply suggestions from code review
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Improve tests
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2024-06-06 10:35:06 +02:00
Marcus Efraimsson
2403665998
Chore: Remove legacydata package ( #88790 )
...
* Chore: Remove legacydata package
* remove unused dependency
* sdk v0.234.0
2024-06-05 22:31:06 +02:00
owensmallwood
1059441ec6
GRPC Service: Use native histogram when enabled ( #88804 )
...
* use native histogram when enabled
* enable native histograms permanently for grpc service histogram
2024-06-05 12:25:09 -06:00
Diego Augusto Molina
5fc580b401
Unified Storage: Testing For Fix Create, Update and Delete wrt Resource Versions ( #88568 )
...
Add testing harness
2024-06-05 15:18:33 -03:00
Diego Augusto Molina
6fcd7d9e03
Unified Storage: Fix Create, Update and Delete wrt Resource Versions ( #88183 )
...
* add sqltemplate utilities, improve tests and documentation
* bunch of things
* remove unnecessary message
* add queries
* add queries
* add queries
* add folders support
* fix diff
* fix linters
* fix diff
* fix linters
* fix linters
* fix typo
* fix linters
* fix linters
* fix linters
* several fixes
* several fixes
* temporarily disable k8s integration tests for Entity Server
* postpone some tests
* postpone documentation changes
* Fix bug in create
* improve error reporting
* fix PostgeSQL parameters
* fix MySQL sqlmode
* fix MySQL-5.7
* reduce but document the number of database connection options
* remove unused code and improve docs
2024-06-05 14:23:32 -03:00
Alexander Weaver
820ee6e9db
Alerting: Make all in api generator tooling now actually makes all ( #88793 )
...
* Make all now actually makes all
* Clean depends on clean-go
2024-06-05 11:52:31 -05:00
Fayzal Ghantiwala
80f54778f3
Alerting: Add option to use Redis in cluster mode for Alerting HA ( #88696 )
...
* Add config option to use Redis in cluster mode
* Use UniversalOptions
2024-06-05 17:02:25 +01:00
Ivana Huckova
023857625a
Elasticsearch: Remove enableElasticsearchBackendQuerying feature toggle ( #88668 )
...
* wip
* Fix newly introduced any
* Remove toggle
* Remove unused code in LegacyQueryRunner
2024-06-05 17:03:29 +02:00
Ryan McKinley
41e0430f83
K8s/Dashboards: Add frontend api to switch between implementations ( #88632 )
2024-06-05 17:34:23 +03:00
Karl Persson
f28905f8c4
Auth: Add org to role mappings support to Gitlab integration ( #88751 )
...
* Conf: Add org_mapping and org_attribute_path to github and gitlab conf
* Gitlab: Implement org role mapping
* Update docs
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2024-06-05 16:15:53 +02:00
Dave Henderson
df784917e4
Alerting: Improve performance of tupleLablesToLabels function ( #88736 )
...
* Alerting: Improve performance of tupleLablesToLabels function
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* use %s for string rather than %v
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
---------
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2024-06-05 16:19:09 +03:00
Marcus Efraimsson
fe3e5917f1
Plugins: Preserve trailing slash in plugin proxy ( #86859 )
...
* Plugins: Preserve trailing slash in plugin proxy
* enable toggle by default
2024-06-05 13:36:14 +02:00
Gabriel MABILLE
b1520e93f1
Fix: Regenerate token on failed encryption/decryption ( #88732 )
...
* Add function to rotate the extsvc token
* Recover from failed token decryption
* add log
* Remove error check
* Log outside error
2024-06-05 11:56:54 +02:00
Matias Chomicki
ec9aecd82b
Loki: remove query formatting ( #88636 )
...
* Loki: remove query formatting
* Loki formatting: remove feature flag
* chore: remove test
* Formatting
2024-06-05 12:46:28 +03:00
Ryan McKinley
71be5c6eb4
K8s: Remove action metadata key ( #88591 )
...
* remove action
* remove action
* remove action
* fix test
2024-06-05 07:37:36 +03:00
Santiago
9f9928d41a
Alerting: Update grafana/alerting ( #88363 )
...
* Alerting: Update grafana/alerting
* make tests pass by implementing yaml unmarshallers and deleting fields with omitempty in their yaml tags
* go mod tidy
* fix tests by implementing not calling GettableApiAlertingConfig.UnmarshalYAML from GettableApiAlertingConfig.UnmarshalJSON
* cleanup, reduce diff
* fix more tests
* update grafana/alerting to latest commit, delete global section from configs in tests
* bring back YAML unmarshaller for GettableApiAlertingConfig
* update alerting package dependency to point to main
* skip test for sns notifier
2024-06-04 20:29:37 +02:00
Matias Chomicki
cd3dab2736
Logs: Infinite scrolling in Explore enabled by default ( #87493 )
...
Logs: enable infinite scrolling
2024-06-04 18:23:20 +02:00
Marcus Efraimsson
0af2931672
Plugins: Don't forward cookies for app plugins ( #88663 )
2024-06-04 16:55:54 +02:00
Yuri Tseretyan
a63ef42816
Alerting: Mute Timing service to prevent changing provenance status to none ( #88462 )
...
* use relaxed validation to not introduce breaking changes for now but to be able to use the service
in non-provisioning APIs.
2024-06-04 08:54:33 -04:00
Mihai Doarna
25c57f21cd
SSO: Add the new role value fields for SSO SAML strategy ( #88561 )
...
added the new role value fields for SSO SAML strategy
2024-06-04 15:47:27 +03:00
Fayzal Ghantiwala
b66cd7ef79
Alerting: Add filters for RouteGetRuleStatuses ( #88295 )
...
* Placeholder commit with rule_uid change
* Add new filters to grafana rule state API
* Revert type change
* Split rule_group and rule_name params
* remove debug line
* Change how query params are parsed
* Comment
2024-06-04 10:57:55 +01:00
Ashley Harrison
3f7017a471
Chore: Remove nestedFolderPicker toggle ( #88660 )
...
remove nestedFolderPicker toggle
2024-06-04 12:16:12 +03:00
Ryan McKinley
b02a5d6e07
FeatureFlags: Update creation timestamps ( #88654 )
2024-06-04 10:40:18 +02:00
Laura Benz
b6bd9e5352
Laura/refactor/rename trash section ( #88617 )
...
* refactor: move and rename page component
* refactor: change codeowners
* refactor: change naming in backend
* refactor: change wording of subtitle
2024-06-04 10:03:33 +03:00
Matthew Jacobson
31d5dd0a12
Alerting: Prevent updating rule uid matcher for silences ( #88519 )
...
Prevents updating the `__alert_rule_uid__` equality matcher (used for rule-specific silences) on existing silences
2024-06-03 17:39:06 -04:00
Ieva
c16f502ec5
Access Control: Clean up permissions for deprovisioned data sources ( #88483 )
...
* make sure that DS permissions get correctly cleaned up when a DS is deleted through provisioning
* don't attempt to delete a DS if it's not found
* fixes for tests
* fix ds tests
* rename DS service used by DS provisioner to BaseDataSourceService to avoid confusions with the full DS service
2024-06-03 16:19:53 +03:00
Misi
eacf6e0a4d
Auth: Add org to role mappings support to GitHub integration ( #88537 )
...
* wip: add extra tests for verifying current logic
* Add OrgRole mapping and tests
* Update docs
* Clean up
* Update docs/sources/setup-grafana/configure-security/configure-authentication/github/index.md
Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com >
* Update docs with None role
* Apply suggestions from code review
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
* Fix
* Prettier docs
* Cleanup tests
---------
Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com >
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
2024-06-03 14:24:58 +02:00
Arati R
73905695e3
Storage: Remove dual writing mode feature flags ( #88573 )
...
Remove dual writing feature flags
2024-05-31 20:18:09 +02:00
Arati R
36f42853dd
Storage: Read desired mode from config instead of feature flags ( #88353 )
...
* Read desired mode from config
* Update playlist integration tests
* Add mode 1 playlist integration tests
* Add mode 0 dual writing to playlist integration tests
* Add documentation for the different dual writing modes
2024-05-31 19:29:59 +02:00
Piotr Jamróz
1e70cd8dad
Docs: Clarify that some GA flags may be disabled by default ( #88284 )
2024-05-31 16:18:54 +02:00
Bruno
33b9544047
Cloud migrations: create route to delete token ( #88297 )
...
* Cloud migrations: create route to delete token
* gcom.DeleteToken returns ErrTokenNotFound instead of a boolean
* remove unnecessary comment
* make openapi3-gen && yarn run rtk-query-codegen-openapi ./scripts/generate-rtk-apis.ts
* gcom stub: implement DeleteToken
2024-05-31 10:03:43 -03:00
Bruno
83543c6b12
Cloud migrations: create route to fetch cloud migration token ( #88176 )
...
* Cloud migration: create route to fetch cloud migration token
* implement gcomStub.ListTokens
* fix swagger for POST /cloudmigration/migration
* fix swagger for POST /cloudmigration/migration
* fix swagger for POST /cloudmigration/migration
2024-05-31 09:39:10 -03:00
Fayzal Ghantiwala
67b9e3b269
Alerting: Update HA Redis TLS docs ( #88538 )
...
* Update HA Redis TLS doc
* Add test for regular TLS
* Update docs
* Update prom registry
2024-05-31 13:23:45 +01:00
Sofia Papagiannaki
17ca61d7f8
Alerting: Export and provisioning rules into subfolders ( #77450 )
...
* Folders: Optionally include fullpath in service responses
* Alerting: Export folder fullpath instead of title
* Escape separator in folder title
* Add support for provisiong alret rules into subfolders
* Use FolderService for creating folders during provisioning
* Export WithFullpath() folder service function
---------
Co-authored-by: Tania B <yalyna.ts@gmail.com >
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com >
2024-05-31 11:09:20 +03:00
Mihai Doarna
e1aedb65b3
SSO: Add oldSettings param to the Validate function from SSO settings ( #88245 )
...
* add oldSettings param to the Validate function from SSO settings
* update unit tests adding the missing param to Validate
2024-05-31 11:08:52 +03:00
Matthew Jacobson
09cb3a6048
Alerting: Add optional metadata via query param to silence GET requests ( #88000 )
...
* Alerting: Add optional metadata to GET silence responses
- ruleMetadata: to request rule metadata.
- accesscontrol: to request access control metadata.
2024-05-30 12:04:47 -04:00
Misi
ed6b3e9e7c
Auth: Introduce pre-logout hooks + add GCOM LogoutHook ( #88475 )
...
* Introduce preLogoutHooks in authn service
* Add gcom_logout_hook
* Config the api token from the Grafana config file
* Simplify
* Add tests for logout hook
* Clean up
* Update
* Address PR comment
* Fix
2024-05-30 15:52:16 +02:00
Carl Bergquist
6c79f63c04
Auth: Pass ctx when updating last seen ( #88496 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2024-05-30 14:25:54 +02:00
Kristin Laemmert
876ed9bf0b
chore: decrease frequency of updating last_seen ( #88461 )
2024-05-30 08:09:22 -04:00
kay delaney
8f45003192
LibraryPanels/RBAC: Ignore old folder permission check when deleting/patching lib panel ( #88422 )
...
* LibraryPanels/RBAC: Ignore old folder permission check when deleting lib panel
* Same for patching
2024-05-30 12:23:20 +01:00
Sofia Papagiannaki
4f999f2b6c
Dashboards: Fix regression when deleting folder ( #88311 )
...
* Fix regression when deleting folder
* Apply suggestion from code review
2024-05-30 14:21:34 +03:00
Ieva
1c2ae2c72d
Dashboards: Correctly display Admin access to dashboards in the UI ( #88439 )
...
* include folder wildcard scope in dash permission inheritance
* Update pkg/services/accesscontrol/ossaccesscontrol/permissions_services.go
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
---------
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
2024-05-30 10:06:01 +03:00
William Wernert
5de7d4d06d
Alerting: Create writer interface for recording rules ( #88459 )
...
* Create writer interface for recording rules
Also create fake impl + use it for stub in scheduler
2024-05-29 22:38:33 +03:00