mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
instrumentation: remove live endpoints from slo (#77706)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
parent
e61ebd4b06
commit
bc7c7bec16
@ -29,6 +29,7 @@ import (
|
|||||||
"github.com/grafana/grafana/pkg/infra/log"
|
"github.com/grafana/grafana/pkg/infra/log"
|
||||||
"github.com/grafana/grafana/pkg/infra/usagestats"
|
"github.com/grafana/grafana/pkg/infra/usagestats"
|
||||||
"github.com/grafana/grafana/pkg/middleware"
|
"github.com/grafana/grafana/pkg/middleware"
|
||||||
|
"github.com/grafana/grafana/pkg/middleware/requestmeta"
|
||||||
"github.com/grafana/grafana/pkg/plugins"
|
"github.com/grafana/grafana/pkg/plugins"
|
||||||
"github.com/grafana/grafana/pkg/services/accesscontrol"
|
"github.com/grafana/grafana/pkg/services/accesscontrol"
|
||||||
"github.com/grafana/grafana/pkg/services/annotations"
|
"github.com/grafana/grafana/pkg/services/annotations"
|
||||||
@ -333,12 +334,12 @@ func ProvideService(plugCtxProvider *plugincontext.Provider, cfg *setting.Cfg, r
|
|||||||
|
|
||||||
g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) {
|
g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) {
|
||||||
group.Get("/ws", g.websocketHandler)
|
group.Get("/ws", g.websocketHandler)
|
||||||
}, middleware.ReqSignedIn)
|
}, middleware.ReqSignedIn, requestmeta.SetSLOGroup(requestmeta.SLOGroupNone))
|
||||||
|
|
||||||
g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) {
|
g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) {
|
||||||
group.Get("/push/:streamId", g.pushWebsocketHandler)
|
group.Get("/push/:streamId", g.pushWebsocketHandler)
|
||||||
group.Get("/pipeline/push/*", g.pushPipelineWebsocketHandler)
|
group.Get("/pipeline/push/*", g.pushPipelineWebsocketHandler)
|
||||||
}, middleware.ReqOrgAdmin)
|
}, middleware.ReqOrgAdmin, requestmeta.SetSLOGroup(requestmeta.SLOGroupNone))
|
||||||
|
|
||||||
g.registerUsageMetrics()
|
g.registerUsageMetrics()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user