Implement metrics and cli
This commit is contained in:
17
pkg/metrics/metrics.go
Normal file
17
pkg/metrics/metrics.go
Normal file
@ -0,0 +1,17 @@
|
||||
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",
|
||||
},
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user