Skip to content

Commit 3ea7e68

Browse files
Merge pull request kubernetes-csi#41 from jsafrane/4.8-fix-migration-metrics
Bug 1956768: UPSTREAM: 620: Fix migration metric registration
2 parents 95c5531 + abe1a0e commit 3ea7e68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/csi-provisioner/csi-provisioner.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ func main() {
222222
klog.V(2).Infof("Supports migration from in-tree plugin: %s", supportsMigrationFromInTreePluginName)
223223

224224
// Create a new connection with the metrics manager with migrated label
225-
metricsManager = metrics.NewCSIMetricsManagerWithOptions(provisionerName, metrics.WithMigration())
225+
metricsManager = metrics.NewCSIMetricsManagerWithOptions(provisionerName,
226+
// Will be provided via default gatherer.
227+
metrics.WithProcessStartTime(false),
228+
metrics.WithMigration())
226229
migratedGrpcClient, err := ctrl.Connect(*csiEndpoint, metricsManager)
227230
if err != nil {
228231
klog.Error(err.Error())

0 commit comments

Comments
 (0)