pod-volume-cleaner/pkg/metrics/metrics.go

18 lines
368 B
Go
Raw Normal View History

2022-09-11 22:15:47 +00:00
package metrics
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
NumErrors = promauto.NewGauge(
prometheus.GaugeOpts{
Namespace: "infra",
Subsystem: "pod_cleaner",
Name: "orphans_pod_error_count",
Help: "Number of orphan pods that failed to be cleaned",
},
)
)