mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Embed mutex on web status handler
This commit is contained in:
parent
7740167654
commit
cdde766f39
|
@ -48,10 +48,10 @@ func (h *StatusHandler) ServeRequestsForever() {
|
||||||
})
|
})
|
||||||
|
|
||||||
h.PrometheusStatus = &PrometheusStatus{
|
h.PrometheusStatus = &PrometheusStatus{
|
||||||
BuildInfo: h.BuildInfo,
|
BuildInfo: h.BuildInfo,
|
||||||
Config: h.Config.String(),
|
Config: h.Config.String(),
|
||||||
Flags: flags,
|
Flags: flags,
|
||||||
Rules: "TODO: list rules here",
|
Rules: "TODO: list rules here",
|
||||||
// BUG: race condition, concurrent map access
|
// BUG: race condition, concurrent map access
|
||||||
TargetPools: h.TargetManager.Pools(),
|
TargetPools: h.TargetManager.Pools(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue