mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Update pkg/metrics/recorder.go
Co-authored-by: Stefan Prodan <stefan.prodan@gmail.com> Signed-off-by: Ying Liu <ying.liu.lying@gmail.com>
This commit is contained in:
committed by
Ying Liu
co-authored by
Stefan Prodan
parent
5547533197
commit
13483321ac
@@ -71,8 +71,8 @@ func NewRecorder(controller string, register bool) Recorder {
|
||||
analysis := prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Subsystem: controller,
|
||||
Name: "canary_metric_analysis",
|
||||
Help: "Last canary metric analysis result per different metric template",
|
||||
}, []string{"name", "namespace", "metricTemplate"})
|
||||
Help: "Last canary analysis result per metric",
|
||||
}, []string{"name", "namespace", "metric"})
|
||||
|
||||
if register {
|
||||
prometheus.MustRegister(info)
|
||||
|
||||
Reference in New Issue
Block a user