Add Prometheus statistics and an example to showcase them using Grafana

This commit is contained in:
Nigel Deakin
2017-10-05 16:21:31 +01:00
parent 02715442f0
commit ae31944224
9 changed files with 1293 additions and 8 deletions

View File

@@ -280,6 +280,7 @@ func (s *Server) bindHandlers(ctx context.Context) {
engine.GET("/", handlePing)
engine.GET("/version", handleVersion)
engine.GET("/stats", s.handleStats)
engine.GET("/metrics", s.handlePrometheusMetrics)
{
v1 := engine.Group("/v1")