Merge pull request #396 from fnproject/add_prometheus_metrics

Add Prometheus statistics and an example to showcase them using Grafana
This commit is contained in:
Nigel Deakin
2017-10-10 09:37:28 +01:00
committed by GitHub
10 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")