mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graphite: Fix bug in wildcard queries to Graphite plugin (#60549)
* commit something that works, need to figure out scoping issues * clean up now that I know about addressable values
This commit is contained in:
parent
73d5aa4878
commit
09c759b36c
@ -173,10 +173,15 @@ func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, f := range frames {
|
for _, f := range frames {
|
||||||
|
if resp, ok := result.Responses[f.Name]; ok {
|
||||||
|
resp.Frames = append(resp.Frames, f)
|
||||||
|
result.Responses[f.Name] = resp
|
||||||
|
} else {
|
||||||
result.Responses[f.Name] = backend.DataResponse{
|
result.Responses[f.Name] = backend.DataResponse{
|
||||||
Frames: data.Frames{f},
|
Frames: data.Frames{f},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user