Commit 6a484ac4 authored by Geoff Simmons's avatar Geoff Simmons

Add some more docs to quiet golint.

parent efafa348
......@@ -135,12 +135,15 @@ var (
}, []string{"namespace", "kind", "result"})
// InitMetrics sets the prometheus provider for the workqueue metrics,
// and registers the counter vectors.
func InitMetrics() {
// ServeMetrics executes the HTTP Handler for the /metrics endpoint.
func ServeMetrics(log *logrus.Logger, port uint16) {
addr := fmt.Sprintf(":%d", port)
http.Handle("/metrics", promhttp.Handler())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment