mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 10:02:33 +08:00
Plugins: Add backend target to instrumentation (#61980)
* add target * fix test
This commit is contained in:
@ -634,6 +634,10 @@ func (tp *testPlugin) IsDecommissioned() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (tp *testPlugin) Target() backendplugin.Target {
|
||||
return backendplugin.TargetNone
|
||||
}
|
||||
|
||||
func (tp *testPlugin) CollectMetrics(_ context.Context, _ *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error) {
|
||||
return nil, backendplugin.ErrMethodNotImplemented
|
||||
}
|
||||
|
Reference in New Issue
Block a user