You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
watchtower/pkg/api/metrics/metrics.go

15 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)
}