@@ -111,8 +111,8 @@ penultimate completed version for 'completed'.
111111 }, []string {"name" , "condition" , "reason" }),
112112 clusterVersionRiskConditions : prometheus .NewGaugeVec (prometheus.GaugeOpts {
113113 Name : "cluster_version_risk_conditions" ,
114- Help : "Report the risk conditions for cluster versions . 0 is False and 1 is True." ,
115- }, []string {"name" , " condition" , "risk" }),
114+ Help : "Report the risk conditions for the cluster version . 0 is False and 1 is True." ,
115+ }, []string {"condition" , "risk" }),
116116 clusterOperatorConditionTransitions : prometheus .NewGaugeVec (prometheus.GaugeOpts {
117117 Name : "cluster_operator_condition_transitions" ,
118118 Help : "Reports the number of times that a condition on a cluster operator changes status" ,
@@ -441,7 +441,7 @@ func (m *operatorMetrics) Describe(ch chan<- *prometheus.Desc) {
441441 ch <- m .capability .WithLabelValues ("" ).Desc ()
442442 ch <- m .clusterOperatorUp .WithLabelValues ("" , "" , "" ).Desc ()
443443 ch <- m .clusterOperatorConditions .WithLabelValues ("" , "" , "" ).Desc ()
444- ch <- m .clusterVersionRiskConditions .WithLabelValues ("" , "" , "" ).Desc ()
444+ ch <- m .clusterVersionRiskConditions .WithLabelValues ("" , "" ).Desc ()
445445 ch <- m .clusterOperatorConditionTransitions .WithLabelValues ("" , "" ).Desc ()
446446 ch <- m .clusterInstaller .WithLabelValues ("" , "" , "" ).Desc ()
447447 ch <- m .clusterVersionOperatorUpdateRetrievalTimestampSeconds .WithLabelValues ("" ).Desc ()
@@ -470,7 +470,7 @@ func (m *operatorMetrics) collectConditionalUpdateRisks(ch chan<- prometheus.Met
470470 continue
471471 }
472472
473- g := m .clusterVersionRiskConditions .WithLabelValues ("version" , condition .Type , risk .Name )
473+ g := m .clusterVersionRiskConditions .WithLabelValues (condition .Type , risk .Name )
474474 if condition .Status == metav1 .ConditionTrue {
475475 g .Set (1 )
476476 } else {
0 commit comments