Skip to content

Commit

Permalink
Fix prom_read to use a measurement name as a backend key as prom_write (
Browse files Browse the repository at this point in the history
  • Loading branch information
matianjun1 committed Jul 18, 2022
1 parent 95d0d33 commit 93aff1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (hs *HttpService) HandlerPromRead(w http.ResponseWriter, req *http.Request)
q := readReq.Queries[0]
for _, m := range q.Matchers {
if m.Name == "__name__" {
metric = m.Name
metric = m.Value
}
}
if metric == "" {
Expand Down

0 comments on commit 93aff1d

Please sign in to comment.