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:
Michael Mandrus 2022-12-30 13:53:42 -05:00 committed by GitHub
parent 73d5aa4878
commit 09c759b36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,8 +173,13 @@ func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest)
}
for _, f := range frames {
result.Responses[f.Name] = backend.DataResponse{
Frames: data.Frames{f},
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{
Frames: data.Frames{f},
}
}
}