mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
14 lines
363 B
Go
14 lines
363 B
Go
package metrics
|
|
|
|
import (
|
|
. "github.com/containrrr/watchtower/pkg/api/prelude"
|
|
"github.com/containrrr/watchtower/pkg/metrics"
|
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
|
)
|
|
|
|
// GetV1 creates a new metrics http handler
|
|
func GetV1() HandlerFunc {
|
|
// Initialize watchtower metrics
|
|
metrics.Init()
|
|
return WrapHandler(promhttp.Handler().ServeHTTP)
|
|
}
|