Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
916 B · 29 lines
Go
at master
123456789101112131415161718192021222324252627282930package knotmirror
import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto")
// Resync metricsvar ( // TODO: // - working / waiting resycner counts resyncsStarted = promauto.NewCounter(prometheus.CounterOpts{ Name: "knotmirror_resyncs_started_total", Help: "Total number of repo resyncs started", }) resyncsCompleted = promauto.NewCounter(prometheus.CounterOpts{ Name: "knotmirror_resyncs_completed_total", Help: "Total number of repo resyncs completed", }) resyncsFailed = promauto.NewCounter(prometheus.CounterOpts{ Name: "knotmirror_resyncs_failed_total", Help: "Total number of repo resyncs failed", }) resyncDuration = promauto.NewHistogram(prometheus.HistogramOpts{ Name: "knotmirror_resync_duration_seconds", Help: "Duration of repo resync operations", Buckets: prometheus.ExponentialBuckets(0.1, 2, 12), }))