@@ -18,6 +18,7 @@ const (
18
18
VERSION_LABEL = "version"
19
19
PHASE_LABEL = "phase"
20
20
REASON_LABEL = "reason"
21
+ PACKAGE_LABEL = "package"
21
22
)
22
23
23
24
// TODO(alecmerdler): Can we use this to emit Kubernetes events?
@@ -149,7 +150,7 @@ var (
149
150
Name : "subscription_sync_total" ,
150
151
Help : "Monotonic count of subscription syncs" ,
151
152
},
152
- []string {NAME_LABEL , INSTALLED_LABEL , CHANNEL_LABEL },
153
+ []string {NAME_LABEL , INSTALLED_LABEL , CHANNEL_LABEL , PACKAGE_LABEL },
153
154
)
154
155
155
156
csvSucceeded = prometheus .NewGaugeVec (
@@ -183,8 +184,8 @@ func RegisterCatalog() {
183
184
prometheus .MustRegister (SubscriptionSyncCount )
184
185
}
185
186
186
- func CounterForSubscription (name , installedCSV , channelName string ) prometheus.Counter {
187
- return SubscriptionSyncCount .WithLabelValues (name , installedCSV , channelName )
187
+ func CounterForSubscription (name , installedCSV , channelName , packageName string ) prometheus.Counter {
188
+ return SubscriptionSyncCount .WithLabelValues (name , installedCSV , channelName , packageName )
188
189
}
189
190
190
191
func EmitCSVMetric (oldCSV * olmv1alpha1.ClusterServiceVersion , newCSV * olmv1alpha1.ClusterServiceVersion ) {
0 commit comments