Live: display stream rate, fix duplicate channels in list response (#37365)

This commit is contained in:
Alexander Emelin
2021-07-30 21:05:39 +03:00
committed by GitHub
parent 012b9c41a5
commit 31903778ae
6 changed files with 174 additions and 51 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func (g *Gateway) Handle(ctx *models.ReqContext) {
// interval = "1s" vs flush_interval = "5s"
for _, mf := range metricFrames {
err := stream.Push(ctx.SignedInUser.OrgId, mf.Key(), mf.Frame())
err := stream.Push(mf.Key(), mf.Frame())
if err != nil {
logger.Error("Error pushing frame", "error", err, "data", string(body))
ctx.Resp.WriteHeader(http.StatusInternalServerError)