Ryan McKinley
2c09f969f1
K8s: Add dashboard service (requires dev mode) ( #78565 )
2024-01-11 01:20:30 +02:00
Ryan McKinley
1caaa56de0
FeatureFlags: Use interface rather than manager ( #80000 )
2024-01-09 10:38:06 -08:00
Jo
3c4bc24dec
ServerLock: Fix missing return ID for postgres ( #79878 )
...
fix missing return ID for postgres
2023-12-28 11:15:18 +01:00
Jo
a595353d57
ServerLock: Rework serverlock to use raw SQL and not depend on id ( #79859 )
...
* rework SQL to use raw sql and more resistant to DBs that do not return ID
* rework SQL to return ID in all DBs. Avoid using ID as operator
2023-12-27 14:59:43 +01:00
Ryan McKinley
67bbdd7c05
K8s/Folders: Add folders api service (with legacy storage) ( #79413 )
2023-12-20 20:28:56 +02:00
Will Browne
ef60c90dfa
Plugins: Make file system path handling in tests OS agnostic ( #79651 )
...
* make path handling OS agnostic
* PR feedback
* fix input for test case
2023-12-19 11:01:48 +01:00
Dan Cech
9f6144059a
Storage: Switch from tenant to namespace & remove GRN ( #79250 )
...
* remove GRN and switch tenant to namespace
* clean up remaining references
* simplify and remove inconsistency in With* parameters
* parse listing keys so we can use db index
* bump the schema version
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-12-11 12:26:05 -05:00
Todd Treece
89934b0884
K8s: Merge metric registries ( #79256 )
2023-12-08 10:44:46 -05:00
Todd Treece
2a2a132c61
K8s: Refactor metrics to share k8s registry ( #79106 )
2023-12-06 16:34:23 -05:00
Todd Treece
7e2aad1d01
Revert "K8s: Refactor metrics to share k8s registry ( #77957 )" ( #79079 )
...
This reverts commit 38bc41651a
.
2023-12-05 09:34:07 -05:00
Todd Treece
38bc41651a
K8s: Refactor metrics to share k8s registry ( #77957 )
...
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-12-04 10:54:59 -08:00
Dan Cech
3c89e68fc1
Chore: Fix timeout issues when gathering prometheus datasource stats ( #74618 )
...
* fix timeout issues when gathering prometheus flavor stats
* workaround data race in sdk tracing middleware
* cap concurrency at 10
---------
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2023-11-29 16:01:54 -05:00
Alexander Weaver
8a56a94781
Usagestats: Add stat group for alert rule groups ( #78825 )
...
* Add rule group support to usagestats service
* Quote column name
2023-11-29 14:37:36 -06:00
Alexander Weaver
27b7d1de6f
Stats: Fix unregistered unified alerting metric ( #78777 )
...
Fix unregistered metric
2023-11-29 08:28:13 -06:00
Jo
0de66a8099
Authz: Remove use of SignedInUser copy for permission evaluation ( #78448 )
...
* remove use of SignedInUserCopies
* add extra safety to not cross assign permissions
unwind circular dependency
dashboardacl->dashboardaccess
fix missing import
* correctly set teams for permissions
* fix missing inits
* nit: check err
* exit early for api keys
2023-11-22 14:20:22 +01:00
Xavi Lacasa
72759be6ec
AuthN: Support HA setups with External Service Account management ( #78425 )
...
* Lock when creating external service
* Add local lock back
* Improve function signature
* Define lockName separately to make it more explicit
* Update pkg/infra/serverlock/serverlock.go
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
* Update pkg/infra/serverlock/serverlock.go
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-11-22 10:15:13 +01:00
Ryan McKinley
71f32d4e19
K8s: Ensure there is always a user in appcontext.User ( #78247 )
2023-11-15 16:52:54 -08:00
Ryan McKinley
a221c1d754
Chore: Remvoe newDBLibrary feature flag ( #78074 )
2023-11-14 06:51:35 -08:00
Andres Martinez Gotor
fcc2f01c7e
Chore: Update otel deps ( #78069 )
...
Co-authored-by: Giuseppe Guerra <giuseppe@guerra.in>
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
2023-11-14 14:14:15 +01:00
Giuseppe Guerra
7b4bcc86f1
Plugins: Pass OTEL sampling config to plugins ( #76834 )
...
* Pass OTEL sampling config to plugins
* fix capital letters
* Do not pass sampler env vars if sampling is not configured
* Add tests
* PR review feedback
* Simplify tracing env vars logic
* Update test to reflect pkg/infra/tracing behaviour
2023-11-10 14:56:08 +01:00
Dan Cech
67b2972052
Chore: add/update sqlstore-related helper functions ( #77408 )
...
* add/update sqlstore-related helper functions
* add documentation & tests for InsertQuery and UpdateQuery, make generated SQL deterministic by sorting columns
* remove old log line
2023-11-03 10:30:52 -04:00
Drew Slobodnjak
9116043453
Storage: Add maxFiles to list functions ( #76414 )
...
* Storage: Add maxFiles to list functions
* Add maxDataPoints argument to listFiles function
* Add maxFiles to ResourceDimensionEditor
* Update pkg/services/store/http.go
* rename First to Limit
---------
Co-authored-by: jennyfana <110450222+jennyfana@users.noreply.github.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-11-01 09:42:24 -07:00
Dan Cech
e01d096ce2
add resource group to grn ( #77396 )
2023-10-30 17:08:46 -04:00
Todd Treece
bf8af608a7
K8s: Add tracer provider to config ( #77003 )
2023-10-25 15:19:44 -04:00
Jo
f2bf066ad2
SigningKeys: Add jwks endpoint ( #76040 )
...
* add jwks
add remote caching
add expose jwks test
tweaks
* fix swagger
* nt
2023-10-05 15:17:31 +02:00
Marcus Efraimsson
e4c1a7a141
Tracing: Standardize on otel tracing ( #75528 )
2023-10-03 14:54:20 +02:00
Marcus Efraimsson
0128d0403f
Tracing: Use tracing.InitializeTracerForTest ( #75479 )
2023-09-27 09:51:57 +02:00
Marcus Efraimsson
534e3ebf0c
Plugins: Use a Grafana specific SDK tracer implementation for core plugins ( #75388 )
2023-09-26 14:46:31 +02: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
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
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
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
Serge Zaitsev
bd12ce0cbc
Chore: capitalise log messages for app platform ( #74336 )
2023-09-04 18:46:08 +02:00
Marcus Andersson
017078913a
Plugins: Added plugin preload time measurement to frontendmetrics ( #73916 )
...
Added preload ms to frontend metricts.
2023-09-04 07:09:14 +02:00
Dan Cech
85a207fceb
Chore: Replace entity GRN with infra/grn GRN ( #74198 )
...
replace entity GRN with infra/grn GRN
2023-08-31 15:43:35 -04:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
Alexander Weaver
2245a3d0d1
Tracer: Export ContextWithSpan ( #73715 )
...
Export ContextWithSpan
2023-08-25 13:48:58 -05:00
Marcus Efraimsson
040b7d2571
Chore: Add errutils helpers ( #73577 )
...
Add helpers for the errutil package in favor of errutil.NewBase.
2023-08-22 12:52:24 +02:00
Dan Cech
dd97038b00
Slug: Combine various slugify fixes for special character handling ( #73164 )
...
* combine various slugify fixes for special character handling
* a couple more test cases
* update more tests
* goimports
2023-08-10 16:12:50 -04:00
Sofia Papagiannaki
afb59af79b
Usage stats: Tune collector execution startup and interval ( #72688 )
...
* Do not update statistics at service collector startup
* Configurable collector interval
* Introduce initial random delay
* Prevent reporting metrics until the stats have been collected
* Apply suggestion from code review
2023-08-03 11:01:44 +03:00
Sofia Papagiannaki
2c26a02b82
Search v1: Remove unnecessary subqueries ( #72388 )
...
* Add feature flag
* Introduce interface and dummy implementation
* Add tests for the new filter
* accessControlDashboardPermissionFilterNoFolderSubquery implementation
* join only if it's necessary
* force ordering for tests
* Temporarily enable new query for benchmarks
2023-08-02 10:39:25 +03:00
Serge Zaitsev
2bfef9e916
Tracing: Differentiate collector and agent better ( #71851 )
...
* differentiate collector and agent better
* Add back the max packet size
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
---------
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2023-08-01 14:23:31 +02:00
Emil Tullstedt
ab0a115372
Annotations: Improve updating annotation tags queries ( #71201 )
...
Annotations: Improve annotation tag updates
2023-07-31 18:19:59 +03:00
Stephanie Hingtgen
5cd1541aee
HTTP Client Metrics: Add datasource_type to datasource metrics ( #72130 )
...
Metrics: Add datasource_type to datasource metrics
2023-07-24 14:22:08 +02:00
Stephanie Hingtgen
4ece133fce
Secure socks proxy: use Grafana Plugin SDK ( #71616 )
2023-07-18 15:23:02 -06:00
Will Browne
a8577c21ba
Plugins: Migrate PluginStore mock to pre-existing fakes package ( #71664 )
...
* migrate to existing fakes package
* fix imports
2023-07-17 10:21:44 +00:00
Juraci Paixão Kröhling
c4be5cd747
Tracing: Reduce the max packet size for Jaeger exporter ( #71659 )
...
Reduce the max packet size for Jaeger exporter
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
2023-07-14 16:31:50 +01:00
Emil Tullstedt
5c19272065
Slug: Use urlencoding to support non-ASCII characters ( #70691 )
2023-07-10 21:05:39 +02:00
Ieva
a65cb4d808
RBAC: remove simple RBAC disabled checks ( #71137 )
...
* remove simple RBAC disabled checks
* fixing tests
* remove old AC tests
2023-07-10 15:14:21 +03:00
Jo
4821175d40
Auth: Add auth.azure_ad security improvements ( #912 )
...
* security improvements id_token
* add audience validation
* add allowOrganizations
* add allowOrganizations tests and documentation
* add log warn on no configuration
* anonymize tenant id
* Apply suggestions from code review
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-security/configure-authentication/azuread/index.md
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* Update pkg/login/social/azuread_oauth_test.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* Update pkg/login/social/azuread_oauth_test.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* optimize key validation and add mising fields
* fix missing key_id
* lint
* Update docs/sources/setup-grafana/configure-security/configure-authentication/azuread/index.md
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
* lint docs
---------
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-06-23 09:13:38 +02:00