mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 03:32:20 +08:00
Plugins: Add backend target to instrumentation (#61980)
* add target * fix test
This commit is contained in:
@ -120,6 +120,10 @@ func (p *grpcPlugin) IsDecommissioned() bool {
|
||||
return p.decommissioned
|
||||
}
|
||||
|
||||
func (p *grpcPlugin) Target() backendplugin.Target {
|
||||
return backendplugin.TargetLocal
|
||||
}
|
||||
|
||||
func (p *grpcPlugin) getPluginClient() (pluginClient, bool) {
|
||||
p.mutex.RLock()
|
||||
if p.client == nil || p.client.Exited() || p.pluginClient == nil {
|
||||
|
Reference in New Issue
Block a user