-
Notifications
You must be signed in to change notification settings - Fork 260
move metrics to service port, add healthz, pprof #1318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cns/service/main.go
Outdated
| mux.HandleFunc("/debug/pprof/trace", pprof.Trace) | ||
| } | ||
|
|
||
| // to reduce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sadparital comment left behind by paul.
| return errors.Wrapf(err, "failed to setup reconciler with manager") | ||
| } | ||
|
|
||
| mux := httpRestServiceImplementation.Listener.GetMux() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have to remember to update the metrics annotation port when we bring this in. Weee non atomic changes.
| mux.Handle("/metrics", promhttp.HandlerFor(metrics.Registry, promhttp.HandlerOpts{ | ||
| ErrorHandling: promhttp.HTTPErrorOnError, | ||
| })) | ||
| healthzhandler := healthz.Handler{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea if this little heathz framework from controller-runtime is good or not. Feel freee to toss.
bc1cc6e to
ab917ee
Compare
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
This reverts commit 5ec6a3f.
This reverts commit 5ec6a3f.
This reverts commit 5ec6a3f.
Azure#1362) This reverts commit 5ec6a3f.
* combine metrics and healthz * use root mux and bind pprof routes on debug config opt Signed-off-by: Evan Baker <rbtr@users.noreply.github.com> Co-authored-by: Paul Miller <pmiller@microsoft.com>
Azure#1362) This reverts commit 5ec6a3f.
Reason for Change:
debugconfig opt.Issue Fixed:
Closes #1294 (because I can't push to it)
Requirements:
Notes: