Embed mutex on web status handler

This commit is contained in:
Bernerd Schaefer 2013-05-06 10:39:13 +02:00
parent 7740167654
commit cdde766f39

View file

@ -48,10 +48,10 @@ func (h *StatusHandler) ServeRequestsForever() {
})
h.PrometheusStatus = &PrometheusStatus{
BuildInfo: h.BuildInfo,
Config: h.Config.String(),
Flags: flags,
Rules: "TODO: list rules here",
BuildInfo: h.BuildInfo,
Config: h.Config.String(),
Flags: flags,
Rules: "TODO: list rules here",
// BUG: race condition, concurrent map access
TargetPools: h.TargetManager.Pools(),
}