Skip to content

Commit

Permalink
Add TODO for serving metrics using K8s machinery
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Sep 17, 2018
1 parent 6b75866 commit de1193b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/manager/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ func (cm *controllerManager) serveMetrics(stop <-chan struct{}) {
handler := promhttp.HandlerFor(metrics.Registry, promhttp.HandlerOpts{
ErrorHandling: promhttp.HTTPErrorOnError,
})
// TODO(JoelSpeed): Use existing Kubernetes machinery for serving metrics
mux := http.NewServeMux()
mux.Handle("/metrics", handler)
server := http.Server{
Expand Down

0 comments on commit de1193b

Please sign in to comment.