mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Merge pull request #104484 from jackfrancis/prober-duration-metrics
add container probe duration metrics
This commit is contained in:
@@ -402,6 +402,7 @@ func (s *Server) InstallDefaultHandlers() {
|
||||
p := compbasemetrics.NewKubeRegistry()
|
||||
_ = compbasemetrics.RegisterProcessStartTime(p.Register)
|
||||
p.MustRegister(prober.ProberResults)
|
||||
p.MustRegister(prober.ProberDuration)
|
||||
s.restfulCont.Handle(proberMetricsPath,
|
||||
compbasemetrics.HandlerFor(p, compbasemetrics.HandlerOpts{ErrorHandling: compbasemetrics.ContinueOnError}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user