add graphite bridge that support delta counters

This commit is contained in:
bergquist
2017-09-04 19:16:35 +02:00
committed by Carl Bergquist
parent c1ef89d3bf
commit d6b8c6a2d2
103 changed files with 23971 additions and 256 deletions

View File

@ -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))