Implement metrics and cli

This commit is contained in:
cyrilix committed 2022-09-12 00:15:47 +02:00
1 parent 620cef3310
commit ebc15cb394
338 files changed
+93223 -2

No files matched your search

+17
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",
},
)
)