SSE: (Chore/Instrumentation) Add ds_queries_total metric and move met… (#66695)

* SSE: (Chore/Instrumentation) Add ds_queries_total metric and move metrics to service
This commit is contained in:
Kyle Brandt
2023-04-17 19:12:44 -04:00
committed by GitHub
parent 45e1bfe421
commit 2f13c851e4
9 changed files with 66 additions and 24 deletions

View File

@@ -446,7 +446,7 @@ func setup(t *testing.T) *testContext {
DataSources: nil,
SimulatePluginFailure: false,
}
exprService := expr.ProvideService(&setting.Cfg{ExpressionsEnabled: true}, pc, fakeDatasourceService, &featuremgmt.FeatureManager{})
exprService := expr.ProvideService(&setting.Cfg{ExpressionsEnabled: true}, pc, fakeDatasourceService, &featuremgmt.FeatureManager{}, nil)
queryService := ProvideService(setting.NewCfg(), dc, exprService, rv, ds, pc) // provider belonging to this package
return &testContext{
pluginContext: pc,