Joan López de la Franca Beltran
532e71554f
Usage Stats: Add metrics to count enabled kms providers per kind ( #43640 )
...
* Usage Insights: Add metrics to count enabled kms providers per kind
* Add backwards compatibility
2022-01-07 13:52:28 +01:00
Selene
32ed680fc2
Team Guardian: Refactor it to remove the bus dependency ( #43058 )
...
* Refactor team guardian to avoid to use bus
* Fix lint
* Fix lint
2022-01-07 13:38:00 +01:00
Emil Tullstedt
fdd196a627
Datemath: Remove unused functions ( #43665 )
2022-01-07 12:53:31 +01:00
Yuriy Tseretyan
ea478dec22
Alerting: Remove bridge between log15 and go-kit logger ( #43769 )
...
* remove bridge between log15 and go-kit logger.
* fix tests
2022-01-07 09:40:09 +01:00
Katarina Yang
7f8daa0eae
Refactor: Change sqlstore.inTransaction to .WithTransactionalDBSession ( #43245 )
...
* Refactor: Change sqlstore.inTransaction(...) to SQLStore.WithTransactionalDBSession(...) in alert_notification.go
* Chore: Fix BE lint err
* fix: fix failing sqlstore nil error
* chore: remove unecessary setup()
* fix: use appropriate ctx
2022-01-06 18:21:39 +01:00
ying-jeanne
a8eef45a44
Logger migration from log15 to gokit/log ( #41636 )
...
* migrate log15 to gokit/log
* fix console log
* update some unittest
* fix all unittest
* fix the build
* Update pkg/infra/log/log.go
Co-authored-by: Yuriy Tseretyan <tceretian@gmail.com>
* general type vector
* correct the level key
Co-authored-by: Yuriy Tseretyan <tceretian@gmail.com>
2022-01-06 22:28:05 +08:00
J Guerreiro
6bbf85e2e9
AccessControl: verify metadata map is not null ( #43743 )
2022-01-06 11:54:51 +01:00
Travis Patterson
20b3b2a448
Forward oauth tokens after prometheus datasource migration ( #43686 )
...
* create the prom client
* implement lru cache of prometheus clients based on auth headers
* linter
2022-01-05 13:55:55 -07:00
Gabriel MABILLE
92c568e9f7
AccessControl: Remove unused error from GetResourcesMetadata
( #43710 )
...
* AccessControl: Remove unused error from GetResourcesMetadata
Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
2022-01-05 17:24:14 +01:00
Alexander Weaver
fd583a0e3b
Alerting: Allow customization of Google chat message ( #43568 )
...
* Allow customizable googlechat message via optional setting
* Add optional message field in googlechat contact point configurator
* Fix strange error message on send if template fails to fully evaluate
* Elevate template evaluation failure logs to Warn level
* Extract default.title template embed from all channels to shared constant
2022-01-05 09:47:08 -06:00
Eric Leijonmarck
0aa905bb1f
Serviceaccounts: feat - tabview for serviceaccounts ( #43573 )
2022-01-05 15:32:38 +01:00
Ivana Huckova
d7d6c10664
Prometheus: Fill missing steps with null values ( #43622 )
...
* Prometheus: Add empty points when data points missing
* Remove newline
* Add comments
* Improve/Fix test
* Remove unused variable
2022-01-05 11:40:32 +01:00
Gilles De Mey
837925390f
fix: pass OrgId to alertNotification model ( #43678 )
...
fixes #43214
2022-01-05 10:19:45 +01:00
J Guerreiro
056e143664
AccessControl: Present user edit actions according to AC metadata ( #43602 )
...
* AccessControl: Add user metadata to user detail view
* AccessControl: Do not present delete or disable buttons based on ac metadata in admin/users
* AccessControl: do not allow password changing or user editing without permission
* AccessControl: Fetch global:users scope for admin
* AccessControl: optimize org.user metadata fetch
* Chore: early return if ac metadata is not available
2022-01-05 09:59:17 +01:00
Ryan McKinley
b09d498484
Import: fix dashboard imports with expressions ( #43630 )
2022-01-04 08:42:18 -08:00
Jeremy Price
42ccc44eca
Accesscontrol: Apply FGAC to APIKey endpoints ( #42659 )
...
* Move definitions to serviceaccounts
* Use constant names, add scope to delete
* Add descriptions to roles
* Rename roles
2022-01-04 15:37:40 +01:00
Travis Patterson
c4c05a5b71
refactor promethueus package into sub packages ( #43634 )
2022-01-04 07:22:33 -07:00
Emil Tullstedt
df4e9ca12b
Datemath: Support fiscal years ( #43558 )
2022-01-04 13:56:34 +01:00
Karl Persson
2425828a0b
quote reserved keyword ( #43652 )
2022-01-04 13:35:52 +01:00
Selene
bdbd199910
Remove unnecesary joins from queries ( #43626 )
2022-01-04 13:04:02 +01:00
Karl Persson
ee690a7bb0
Add org_id in join ( #43648 )
2022-01-04 11:13:45 +01:00
idafurjes
65e60759fb
Rename AddEventListenerCtx to AddEventListener and PublishCtx to Publish ( #43566 )
2022-01-04 09:36:01 +01:00
J Guerreiro
a0cf57b5b8
AccessControl: Reduce tone of access error ( #43601 )
2022-01-04 09:28:55 +01:00
Kyle Brandt
f17fb76b5e
SSE: Add is_nan() and other like functions and allow '_' in func names ( #43555 )
...
* SSE: Add is_nan() and allow '_' in func names
is_null() infn(), is_inf(), is_number()
2021-12-29 11:40:52 -05:00
idafurjes
8e6d6af744
Rename DispatchCtx to Dispatch ( #43563 )
2021-12-28 17:36:22 +01:00
idafurjes
7936c4c522
Rename AddHandlerCtx to AddHandler ( #43557 )
2021-12-28 16:08:07 +01:00
Joan López de la Franca Beltran
80e0dd74d2
Encryption: Increase context timeout on flaky test ( #43553 )
2021-12-28 13:34:45 +01:00
idafurjes
56c3875bb9
Chore: Remove context.TODO ( #43458 )
...
* Remove context.TODO() from services
* Fix live test
2021-12-28 10:26:18 +01:00
Alexander Weaver
56b3dc5445
Alerting: Allow configuration of non-ready alertmanagers ( #43063 )
...
* Create API test for overwriting invalid alertmanager config
* Avoid requiring alertmanager readiness for config changes
* AlertmanagerSrv depends on functionality rather than concrete types
* Add test for non-ready alertmanagers
* Additional cleanup and polish
* Back out previous integration test changes
* Refactor of tests incorrectly caused a test to become redundant
* Use pre-existing fake secret service
* Drop unused interface
* Test against concrete MultiOrgAlertmanager re-using fake infra from other tests
* Fix linter error
* Empty commit to rerun checks
2021-12-27 17:01:17 -06:00
Alexander Weaver
9abdaf251f
Alerting: Fix global state sensitivity in notifier channel tests ( #43508 )
2021-12-27 11:58:17 -06:00
Joan López de la Franca Beltran
83bc445d3e
Encryption: Fix DEKs cache ( #43129 )
...
* Encryption: Fix DEKs cache
* Clarify tests
2021-12-27 18:04:47 +01:00
Alex Khomenko
3b4a4be3c6
Feature highlights: add setting toggle ( #43394 )
...
* Feature highlights: add toggle setting
* Settings: Use provider for 'feature_highlights' section
* Fix frontendsettings API tests
* Document the toggle
Co-authored-by: Joan López de la Franca Beltran <5459617+joanlopez@users.noreply.github.com>
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>
2021-12-24 10:49:52 +02:00
Ryan McKinley
4233a62aeb
DashboardPreviews: add dashboard previews behind feature flag ( #43226 )
...
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Artur Wierzbicki <artur@arturwierzbicki.com>
2021-12-23 09:43:53 -08:00
Karl Persson
0ace9695a6
Access control: Add optional hooks ( #43372 )
...
* Add optional OnSet hooks
2021-12-23 10:10:06 +01:00
J Guerreiro
3d4fafcf70
AccessControl: Add access control metadata to org user DTOs ( #43362 )
...
* AccessControl: Add access control metadata to OrgUserDTO
* AccessControl: get User AC metadata
* AccessControl: return User Access Control metadata when requested
2021-12-22 18:46:33 +01:00
Marcus Efraimsson
7d3bdb6d1b
Plugins: Set backend metadata property for core plugins ( #43349 )
...
Ref #42648
Ref #42781
2021-12-22 17:59:26 +01:00
J Guerreiro
a1b8b5d123
Usage stats: Count API keys ( #42883 )
...
* Stats: add api key count to usage stats
* Chore: correctly capitalize struct member
2021-12-22 17:37:45 +01:00
David Henderson
575eb68828
CloudWatch: Add Missing Elasticache Host-level metrics ( #43455 )
...
Add missing host-level Elasticache metrics from https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheMetrics.HostLevel.html
Follows from https://github.com/grafana/grafana/pull/43336#issuecomment-999367311
2021-12-22 14:02:52 +01:00
idafurjes
b8852ef6a3
Chore: Remove context.TODO() ( #43409 )
...
* Remove context.TODO() from services
* Fix live test
* Remove context.TODO
2021-12-22 11:02:42 +01:00
Karl Persson
2409d8dc1f
check the value of the feature toggle ( #43433 )
2021-12-22 10:05:53 +01:00
Jean-Philippe Quéméner
ffc72aa255
Alerting: fix gosec warning that is not valid ( #43425 )
2021-12-21 19:47:47 +01:00
Daniel Lee
93de61f690
fix for CWE-89 ( #43407 )
...
The sqlOrArgs unpacking seems to confuse CodeQL. Trying something simpler
2021-12-21 19:04:56 +01:00
Karl Persson
b3d5a607d4
Access Control: Add option to filter only managed permissions ( #43371 )
...
* Add option to filter only managed permissions
2021-12-21 14:22:54 +01:00
Tania B
c1be17bec7
Chore: Add Google Cloud KMS dependency ( #43211 )
...
* Encryption: Add Google Cloud KMS dependency
* Change version
2021-12-21 14:15:27 +02:00
Siavash Safi
4c4322f717
CloudWatch: Add all ElastiCache Redis Metrics ( #43336 )
...
Add all missing Redis ElastiCache metrics.
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheMetrics.Redis.html
Signed-off-by: Siavash Safi <siavash.safi@gmail.com>
2021-12-21 09:13:41 +01:00
idafurjes
ff3cf94b56
Chore: Remove context.TODO() from services ( #42555 )
...
* Remove context.TODO() from services
* Fix live test
2021-12-20 17:05:33 +01:00
Carl Bergquist
f373588810
setting: configure toggles as true/false instead of array ( #43326 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2021-12-20 15:33:11 +01:00
Tania B
0dc86bf7f4
Chore: Move default encryption provider to kmsproviders package ( #43331 )
2021-12-20 12:47:49 +02:00
Gábor Farkas
1879a6855e
prometheus: respect the http-method data source setting ( #42753 )
...
* prometheus: respect the http-method data source setting
* removed forgotten if-true section
* refactored json-check
2021-12-20 11:27:18 +01:00
Karl Persson
c3ca2d214d
Access control: Refactor managed permission system to create api and frontend components ( #42540 )
...
* Refactor resource permissions
* Add frondend components for resource permissions
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2021-12-20 09:52:24 +01:00