• Miek Gieben's avatar
    metrics: correctly register all metrics (#1335) · 90dd4bbd
    Miek Gieben authored
    After initial startup, see if prometheus is loaded and if so, register
    our metrics with it.
    Stop doing the init() func and just use the sync.Once so we don't double
    registrer our metrics.
    90dd4bbd
handler.go 2.94 KB