mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* chore: enable unused-parameter from revive Signed-off-by: Matthieu MOREL <[email protected]> * apply recommandations Signed-off-by: Matthieu MOREL <[email protected]> --------- Signed-off-by: Matthieu MOREL <[email protected]>
22 lines
528 B
Go
22 lines
528 B
Go
package metrics
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
// Fake implementation for testing
|
|
func NewFakeAppsetMetrics() *ApplicationsetMetrics {
|
|
reconcileHistogram := prometheus.NewHistogramVec(
|
|
prometheus.HistogramOpts{
|
|
Name: "argocd_appset_reconcile",
|
|
Help: "Application reconciliation performance in seconds.",
|
|
// Buckets can be set later on after observing median time
|
|
},
|
|
[]string{"name", "namespace"},
|
|
)
|
|
|
|
return &ApplicationsetMetrics{
|
|
reconcileHistogram: reconcileHistogram,
|
|
}
|
|
}
|