Implement metrics and cli

This commit is contained in:
2022-09-12 00:15:47 +02:00
parent 620cef3310
commit ebc15cb394
338 changed files with 93223 additions and 2 deletions

17
pkg/metrics/metrics.go Normal file
View 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",
},
)
)