Yuri Tseretyan
d79822db37
[v11.2.x] Chore: Add go workspace scripts ( #92297 )
...
Chore: Add go workspace scripts (#91707 )
(cherry picked from commit 7f155b2b6f )
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2024-08-22 10:51:46 -04:00
grafana-delivery-bot[bot]
38db7f80c0
[v11.2.x] Annotations: only set userID if caller is a user or service account ( #92291 )
...
Annotations: only set userID if caller is a user or service account (#91898 )
* Ignore errors when extracting current user id
* Only set userID if caller is user or service account
* Fix patch api
(cherry picked from commit e9bb3b4d73 )
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
2024-08-22 17:14:04 +03:00
Yuri Tseretyan
8c1926a422
Revert "update open API"
...
This reverts commit 00ff74cc96 .
2024-08-22 10:05:40 -04:00
Todd Treece
00ff74cc96
update open API
2024-08-22 10:02:46 -04:00
grafana-delivery-bot[bot]
811307c46b
[v11.2.x] Identity: remove GetTypedID ( #92256 )
...
Identity: remove GetTypedID (#91745 )
(cherry picked from commit bcfb66b416 )
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
2024-08-22 15:53:59 +02:00
grafana-delivery-bot[bot]
7a25060fa6
[v11.2.x] Semconv: Add k8s.dataplaneservice.name ( #92286 )
...
Semconv: Add k8s.dataplaneservice.name (#91714 )
(cherry picked from commit c5c206d8a6 )
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2024-08-22 09:36:33 -04:00
grafana-delivery-bot[bot]
5b5d067df0
[v11.2.x] Chore: Remove depguard rule skip in apiserver ( #92287 )
...
Chore: Remove depguard rule skip in apiserver (#91705 )
(cherry picked from commit f463d622d0 )
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2024-08-22 16:25:09 +03:00
grafana-delivery-bot[bot]
1247fba905
[v11.2.x] QuotaService: refactor to use ReplDB for Get queries ( #92285 )
...
QuotaService: refactor to use ReplDB for Get queries (#91333 )
* Feature (quota service): Use ReplDB for quota service Gets
This adds the replDB to the quota service, as well as some more test helper functions to simplify updating tests. My intent is that the helper functions can be removed when this is fully rolled out (or not) and we're consistently using the ReplDB interface (or not!)
* test updates
(cherry picked from commit 299c142f6a )
Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com >
2024-08-22 08:55:54 -04:00
grafana-delivery-bot[bot]
858d5e4381
[v11.2.x] OpenTSDB: Fix data frame construction ( #92249 )
...
* OpenTSDB: Fix data frame construction (#90991 )
* Update type and frame construction
* Update tests
* Keep dataField name as value
(cherry picked from commit 06509712ec )
* OpenTSDB: Fix test (#91761 )
Fix test
---------
Co-authored-by: Andreas Christou <andreas.christou@grafana.com >
2024-08-22 13:31:46 +01:00
grafana-delivery-bot[bot]
278681f173
[v11.2.x] RBAC: Fix an issue with server admins not being able to manage users in orgs that they don't belong to ( #92274 )
...
* RBAC: Fix an issue with server admins not being able to manage users in orgs that they don't belong to (#92024 )
* look at global perms if user is not a part of the target org
* use constant
* update tests
(cherry picked from commit 41ac5b5ae7 )
* fix tests
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2024-08-22 13:30:50 +03:00
grafana-delivery-bot[bot]
e23f74f1c7
[v11.2.x] Chore: Add dataplaneAggregator feature toggle ( #92252 )
...
Chore: Add dataplaneAggregator feature toggle (#91715 )
(cherry picked from commit 122e291134 )
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2024-08-21 17:55:31 -04:00
grafana-delivery-bot[bot]
41f3657c45
[v11.2.x] Auth: Skip email extraction when api url is not present ( #92255 )
...
Auth: Skip email extraction when api url is not present (#91699 )
* Auth: Skip email extraction when api url is not present
* fix lint: reduce cyclomatic complexity
(cherry picked from commit be32630de5 )
Co-authored-by: Agni Bhattacharyya <34892434+PyAgni@users.noreply.github.com >
2024-08-21 17:55:18 -04:00
grafana-delivery-bot[bot]
a37d107c58
[v11.2.x] CloudMigration: Removes snapshot and resources when deleting a session ( #92250 )
...
CloudMigration: Removes snapshot and resources when deleting a session (#91548 )
(cherry picked from commit e20c7342a9 )
Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com >
2024-08-21 17:55:03 -04:00
grafana-delivery-bot[bot]
4115a67a42
[v11.2.x] Zanzana: Evaluate dashboard and folder permissions ( #92253 )
...
Zanzana: Evaluate dashboard and folder permissions (#91539 )
* Zanzana: basic folder permissions checks
* Fix managed permissions for teams
* fix sync batch size
* add dashboards actions translations
* migrate folder tree
* migrate dashboard folders
* remove action sets from schema
* Adding more dashboard and folder-related permissions
* refactor
* Correctly translate dashboard permissions in folders
* fix dashboard parent permissions
(cherry picked from commit 1cc438a56c )
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com >
2024-08-21 17:54:50 -04:00
grafana-delivery-bot[bot]
25c9b9d58e
[v11.2.x] Alerting: Support for optimistic concurrency in priovisioning Tempate API ( #92251 )
...
Alerting: Support for optimistic concurrency in priovisioning Tempate API (#91195 )
* support optimistic concurrency in template service
* update request handler to get version from query parameter
* return not found if a new template is set with version
* update PUT api to set version
* update documentation + for mute timings
---------
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com >
(cherry picked from commit 1108a00668 )
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com >
2024-08-21 17:54:28 -04:00
grafana-delivery-bot[bot]
f8f30409e0
[v11.2.x] experiment: use read replica for Get and Find Dashboards ( #92246 )
...
experiment: use read replica for Get and Find Dashboards (#91706 )
(cherry picked from commit 54177ca619 )
Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com >
2024-08-21 17:09:17 -04:00
Andreas Christou
d76b8f6ca8
[v11.2.x] Bump grafana-azure-sdk-go and related dependencies ( #92236 )
...
Bump grafana-azure-sdk-go and related dependencies (#91124 )
* Bump Azure SDK and related dependencies
* Update go.mods
* update-workspace
* Update go files
(cherry picked from commit 24c9aad5bb )
# Conflicts:
# go.mod
# pkg/apimachinery/go.sum
# pkg/apiserver/go.sum
# pkg/promlib/go.sum
2024-08-21 21:10:16 +01:00
grafana-delivery-bot[bot]
59476ab8f8
[v11.2.x] Bookmarks: Move building logic to the Frontend ( #91954 )
2024-08-15 15:39:03 +01:00
Todd Treece
b4126d3bce
Chore: Update k8s.io dependencies ( #91692 )
2024-08-08 18:39:44 +03:00
Alexander Zobnin
0e5d7633f7
Access Control: Make it possible to exclude role grants ( #91647 )
2024-08-08 14:11:17 +02:00
Nathan Vērzemnieks
f19a0ce452
Cloudwatch: Clear cached PDC transport when PDC is disabled ( #91357 )
...
Cloudwatch: clear cached PDC transport when PDC is disabled
2024-08-07 16:11:56 +02:00
Joey Orlando
cb540a28bd
Plugins: add IRM plugin to "Alerts & IRM" left-hand navigation group ( #91423 )
...
add IRM plugin to "Alerts & IRM" left-hand navigation group
2024-08-07 09:44:43 -04:00
Kristin Laemmert
a117b090cf
chore: preallocate slices where we have a good idea of requirements ( #91596 )
...
* chore: preallocate slices where we have a good idea of requirements
* pr feedback
2024-08-07 08:34:52 -04:00
Ryan McKinley
9e116d13a5
K8s/Dashboards: Fix dashboard list and add tests ( #91523 )
2024-08-07 13:43:13 +03:00
lean.dev
b5e32b31b1
Grafana: Enables use of encrypted certificates with password for https ( #91418 )
2024-08-06 19:18:32 -03:00
Karl Persson
d93f5bab83
RemoteCache: remove count method ( #91581 )
...
* remove count method
* remove count from remote cache
---------
Co-authored-by: jguer <me@jguer.space >
2024-08-06 19:21:00 +02:00
Andre Pereira
d84fd94936
Tempo: Add migration to enable TraceQL streaming for Tempo datasources ( #91340 )
...
* Add migration to enable TraceQL streaming for Tempo datasources
* lint
* Always run migration but exit early if feature flag is disabled
* Require feature toggle OR datasource config to enable streaming
2024-08-06 18:09:06 +01:00
Michael Mandrus
6cd0971dc6
CloudMigration: Show warning message for successfully migrated non-core data sources ( #91545 )
...
* minor performance improvement
* apply a warning to any non-core plugins that successfully migrate
* commit frontend wip while I refactor some stuff
* update api
* repurpose error dialog to be a generic details dialog
* whitespace
* add unit test
* fixes from testing
* fix migration summary
* add comment
* fix localization stuff
* fix backend test
* reduce number of queries to the db
* some PR feedback
* whitespace
2024-08-06 19:35:10 +03:00
Yuri Tseretyan
ee78bb653f
Alerting: Log rule evaluation error in scheduler ( #91585 )
2024-08-06 19:27:02 +03:00
owensmallwood
2387798719
Unified Storage: Propagate traces from the apiserver grpc client ( #91226 )
2024-08-06 09:52:11 -06:00
Will Browne
9300c1bbea
Plugins: Update CLI check if plugin is already installed ( #91213 )
...
* check if plugin installed
* undo remove initial vers check
* still attempt deps
2024-08-06 09:21:40 +01:00
Jeff Levin
d4916207a0
chore(tracing): add tracing for frontend and db session ( #91509 )
...
This PR adds instrumentation for loading frontend SPA along with select methods in the dashboard service, and cleans up span handling in sqlstore.
---------
Co-authored-by: Dave Henderson <dave.henderson@grafana.com >
2024-08-05 17:17:39 -08:00
Charandas
abbfc15563
K8s e2e tests: adds e2e package and 10 year certs ( #91557 )
2024-08-06 03:29:36 +03:00
Kristin Laemmert
b6de9e9d3c
search v2: pre-allocate dashboardQueryResult slice capacity for performance ( #91536 )
...
* search v2: pre-allocate dashboardQueryResult slice for performance
* use limit parameter for starting slice size
2024-08-05 13:54:57 -04:00
Matthew Jacobson
53cfdf0ef8
Alerting: Remove option to return settings from api/v1/receivers and restrict provisioning action access ( #90861 )
...
* Remove provisioning action access to v1/receivers api
* Separate ListOnly functionality to its own method without decryption
2024-08-05 11:49:23 -04:00
Michael Mandrus
4d23382497
Caching: Handle memcached reconnects ( #91498 )
...
* update library version
* update tls memcached feature toggle
* update to latest version
* updae gomemcache version
2024-08-05 11:21:11 -04:00
Todd Treece
9a2c9647ee
Chore: Add storage submodule to lint & test config ( #91529 )
2024-08-05 17:30:14 +03:00
AvivGuiser
93aa5a56ad
Alerting: Use stable identifier of a group,contact point,mute timing when export to HCL ( #90917 )
...
---------
Signed-off-by: Aviv Guiser <avivguiser@gmail.com >
2024-08-05 09:56:17 -04:00
Ryan McKinley
a223c46506
APIServer: Make TableConverter part of ResourceInfo ( #91520 )
2024-08-05 15:38:12 +03:00
Todd Treece
8c43b9ec2f
Semconv: Change keys to private constants ( #91508 )
2024-08-02 16:13:00 -04:00
Matthew Jacobson
a397bca02e
Alerting: Fix panic with nil annotations & Nodata=alerting/ok/keep ( #91506 )
2024-08-02 22:15:57 +03:00
Yuri Tseretyan
96f7f0f486
Alerting: Use Unstructured type for settings of K8s model Integration + code owners ( #91430 )
...
* remove nonnamespaced paths
* use common.Unstructed for Intergration.Settings
* update codeowners to include alerting
* fix json name of secure fields to start with lower case
2024-08-02 20:02:58 +03:00
Vardan Torosyan
1747cd1747
[Auth] Enable cloudRBACRoles feature toggle for self-serve ( #91036 )
...
Enable cloudRBACRoles feature toggle for self-serve
2024-08-02 16:47:00 +02:00
Alexander Weaver
72ecde5045
Alerting: Make orgID a direct arg of writer interface ( #91422 )
...
make orgID a direct arg of writer interface
2024-08-02 09:37:28 -05:00
Leonor Oliveira
6f6a06435d
Remove unified_storage_mode reference in the grafana repo ( #91481 )
2024-08-02 15:40:05 +02:00
Todd Treece
5376a2eb93
Chore: Add semconv package ( #91408 )
2024-08-02 08:35:18 -04:00
Josh Hunt
e55b438f14
E2C: Reduce UI poll interval and make configurable ( #91386 )
...
* E2C: Reduce UI poll interval and make configurable
* fix default
2024-08-02 10:46:41 +01:00
Claudiu Dragalina-Paraipan
e2435f92f1
[authn]: add GetIDClaims() to Requester ( #91387 )
...
* authn: add GetIDClaims() to Requester
Co-Authored-By: Gabriel MABILLE <gamab@users.noreply.github.com >
* authn: update StaticRequester
Co-Authored-By: Gabriel MABILLE <gamab@users.noreply.github.com >
* update auth/idtest/mock
Co-Authored-By: Gabriel MABILLE <gamab@users.noreply.github.com >
* Fix test
Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com >
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
Co-authored-by: gamab <gabriel.mabille@grafana.com >
2024-08-02 12:36:02 +03:00
Gabriel MABILLE
8988e04044
RBAC: Add permission registry ( #91247 )
...
* RBAC: Permission registry
* Populate permission registry
* Wire
* conflic_user_cmd
* Update pkg/services/accesscontrol/permreg/permreg_test.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
* PR feedback
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
* Remove ToDo, tackle in subsequent PR
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2024-08-02 09:32:06 +02:00
Ryan McKinley
391284bb33
Storage: Improve (some) error handling ( #91373 )
2024-08-02 10:27:10 +03:00