Plugins: Core plugins register via backend factory provider (#43171)
* refactoring store interface and init flow * fix import * fix linter * refactor resource calling * load with class * re-order args * fix tests * fix linter * remove old creator * add custom config struct * fix some tests * cleanup * fix * tackle plugins * fix linter * refactor and fix test * add connect failure error * add fix for azure, cloud monitoring and test data * restructure * remove unused err * add fake tracer for test * fix grafana ds plugin
This commit is contained in:
@@ -471,17 +471,10 @@ func (m *PluginManager) shutdown(ctx context.Context) {
|
||||
|
||||
// corePluginPaths provides a list of the Core plugin paths which need to be scanned on init()
|
||||
func corePluginPaths(cfg *setting.Cfg) []string {
|
||||
datasourcePaths := []string{
|
||||
filepath.Join(cfg.StaticRootPath, "app/plugins/datasource/alertmanager"),
|
||||
filepath.Join(cfg.StaticRootPath, "app/plugins/datasource/dashboard"),
|
||||
filepath.Join(cfg.StaticRootPath, "app/plugins/datasource/jaeger"),
|
||||
filepath.Join(cfg.StaticRootPath, "app/plugins/datasource/mixed"),
|
||||
filepath.Join(cfg.StaticRootPath, "app/plugins/datasource/zipkin"),
|
||||
}
|
||||
|
||||
datasourcePaths := filepath.Join(cfg.StaticRootPath, "app/plugins/datasource")
|
||||
panelsPath := filepath.Join(cfg.StaticRootPath, "app/plugins/panel")
|
||||
|
||||
return append(datasourcePaths, panelsPath)
|
||||
return []string{datasourcePaths, panelsPath}
|
||||
}
|
||||
|
||||
// pluginSettingPaths provides a plugin paths defined in cfg.PluginSettings which need to be scanned on init()
|
||||
|
||||
Reference in New Issue
Block a user