Package list golang-github-go-kit-kit / f9c3c72
Merge pull request #119 from domudall/adding-metrics-handler-in-examples Adding Prometheus handler Peter Bourgon 6 years ago
3 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
421421 Endpoint: makeCountEndpoint(svc),
422422 // ...
423423 }
424
425 http.Handle("/metrics", stdprometheus.Handler())
424426 }
425427 ```
426428
5858
5959 http.Handle("/uppercase", uppercaseHandler)
6060 http.Handle("/count", countHandler)
61 http.Handle("/metrics", stdprometheus.Handler())
6162 _ = logger.Log("msg", "HTTP", "addr", ":8080")
6263 _ = logger.Log("err", http.ListenAndServe(":8080", nil))
6364 }
6868
6969 http.Handle("/uppercase", uppercaseHandler)
7070 http.Handle("/count", countHandler)
71 http.Handle("/metrics", stdprometheus.Handler())
7172 _ = logger.Log("msg", "HTTP", "addr", *listen)
7273 _ = logger.Log("err", http.ListenAndServe(*listen, nil))
7374 }