mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
Auth: Add prometheus metrics for case insensitive ids (#52162)
* rename file * add promstats for authinfostore every 4h * add mixed cased users * cherry pick and cleanup * fix: query login,email instead of count() * FIX: mysql missing alias to subquery * fix: query working on mysql, sqllite3, and pg
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
"github.com/grafana/grafana/pkg/services/guardian"
|
||||
"github.com/grafana/grafana/pkg/services/live"
|
||||
"github.com/grafana/grafana/pkg/services/live/pushhttp"
|
||||
"github.com/grafana/grafana/pkg/services/login/authinfoservice"
|
||||
"github.com/grafana/grafana/pkg/services/ngalert"
|
||||
"github.com/grafana/grafana/pkg/services/notifications"
|
||||
plugindashboardsservice "github.com/grafana/grafana/pkg/services/plugindashboards/service"
|
||||
@@ -40,7 +41,7 @@ func ProvideBackgroundServiceRegistry(
|
||||
pluginsUpdateChecker *updatechecker.PluginsService, metrics *metrics.InternalMetricsService,
|
||||
secretsService *secretsManager.SecretsService, remoteCache *remotecache.RemoteCache,
|
||||
thumbnailsService thumbs.Service, StorageService store.StorageService, searchService searchV2.SearchService, entityEventsService store.EntityEventsService,
|
||||
saService *samanager.ServiceAccountsService,
|
||||
saService *samanager.ServiceAccountsService, authInfoService *authinfoservice.Implementation,
|
||||
// Need to make sure these are initialized, is there a better place to put them?
|
||||
_ dashboardsnapshots.Service, _ *alerting.AlertNotificationService,
|
||||
_ serviceaccounts.Service, _ *guardian.Provider,
|
||||
@@ -71,6 +72,7 @@ func ProvideBackgroundServiceRegistry(
|
||||
searchService,
|
||||
entityEventsService,
|
||||
saService,
|
||||
authInfoService,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user