Package list golang-github-go-kit-kit / 593cc9a
Request to move from prometheus http (deprecated) to the promhttp fixes #491 Kaviraj 4 years ago
4 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1616 stdopentracing "github.com/opentracing/opentracing-go"
1717 zipkin "github.com/openzipkin/zipkin-go-opentracing"
1818 stdprometheus "github.com/prometheus/client_golang/prometheus"
19 "github.com/prometheus/client_golang/prometheus/promhttp"
1920 "google.golang.org/grpc"
2021 "sourcegraph.com/sourcegraph/appdash"
2122 appdashot "sourcegraph.com/sourcegraph/appdash/opentracing"
197198 m.Handle("/debug/pprof/profile", http.HandlerFunc(pprof.Profile))
198199 m.Handle("/debug/pprof/symbol", http.HandlerFunc(pprof.Symbol))
199200 m.Handle("/debug/pprof/trace", http.HandlerFunc(pprof.Trace))
200 m.Handle("/metrics", stdprometheus.Handler())
201 m.Handle("/metrics", promhttp.Handler())
201202
202203 logger.Log("addr", *debugAddr)
203204 errc <- http.ListenAndServe(*debugAddr, m)
1111 "time"
1212
1313 stdprometheus "github.com/prometheus/client_golang/prometheus"
14 "github.com/prometheus/client_golang/prometheus/promhttp"
1415
1516 "github.com/go-kit/kit/log"
1617 kitprometheus "github.com/go-kit/kit/metrics/prometheus"
141142 mux.Handle("/handling/v1/", handling.MakeHandler(hs, httpLogger))
142143
143144 http.Handle("/", accessControl(mux))
144 http.Handle("/metrics", stdprometheus.Handler())
145 http.Handle("/metrics", promhttp.Handler())
145146
146147 errs := make(chan error, 2)
147148 go func() {
44 "os"
55
66 stdprometheus "github.com/prometheus/client_golang/prometheus"
7 "github.com/prometheus/client_golang/prometheus/promhttp"
78
89 "github.com/go-kit/kit/log"
910 kitprometheus "github.com/go-kit/kit/metrics/prometheus"
5253
5354 http.Handle("/uppercase", uppercaseHandler)
5455 http.Handle("/count", countHandler)
55 http.Handle("/metrics", stdprometheus.Handler())
56 http.Handle("/metrics", promhttp.Handler())
5657 logger.Log("msg", "HTTP", "addr", ":8080")
5758 logger.Log("err", http.ListenAndServe(":8080", nil))
5859 }
66 "os"
77
88 stdprometheus "github.com/prometheus/client_golang/prometheus"
9 "github.com/prometheus/client_golang/prometheus/promhttp"
910
1011 "github.com/go-kit/kit/log"
1112 kitprometheus "github.com/go-kit/kit/metrics/prometheus"
6263
6364 http.Handle("/uppercase", uppercaseHandler)
6465 http.Handle("/count", countHandler)
65 http.Handle("/metrics", stdprometheus.Handler())
66 http.Handle("/metrics", promhttp.Handler())
6667 logger.Log("msg", "HTTP", "addr", *listen)
6768 logger.Log("err", http.ListenAndServe(*listen, nil))
6869 }