mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 21:32:22 +08:00
add graphite bridge that support delta counters
This commit is contained in:

committed by
Carl Bergquist

parent
c1ef89d3bf
commit
d6b8c6a2d2
@ -6,6 +6,7 @@ import (
|
||||
"github.com/grafana/grafana/pkg/api/dtos"
|
||||
"github.com/grafana/grafana/pkg/middleware"
|
||||
m "github.com/grafana/grafana/pkg/models"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
)
|
||||
|
||||
// Register adds http routes
|
||||
@ -97,6 +98,8 @@ func (hs *HttpServer) registerRoutes() {
|
||||
// api renew session based on remember cookie
|
||||
r.Get("/api/login/ping", quota("session"), LoginApiPing)
|
||||
|
||||
r.Get("/metrics", promhttp.Handler())
|
||||
|
||||
// authed api
|
||||
r.Group("/api", func() {
|
||||
|
||||
@ -264,7 +267,7 @@ func (hs *HttpServer) registerRoutes() {
|
||||
r.Get("/tsdb/testdata/random-walk", wrap(GetTestDataRandomWalk))
|
||||
|
||||
// metrics
|
||||
r.Get("/metrics", wrap(GetInternalMetrics))
|
||||
//r.Get("/metrics", wrap(GetInternalMetrics))
|
||||
|
||||
r.Group("/alerts", func() {
|
||||
r.Post("/test", bind(dtos.AlertTestCommand{}), wrap(AlertTest))
|
||||
|
Reference in New Issue
Block a user