Skip to content

Commit

Permalink
Merge pull request #41 from jsafrane/4.8-fix-migration-metrics
Browse files Browse the repository at this point in the history
Bug 1956768: UPSTREAM: 620: Fix migration metric registration
  • Loading branch information
openshift-merge-robot authored May 5, 2021
2 parents 95c5531 + abe1a0e commit 3ea7e68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/csi-provisioner/csi-provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ func main() {
klog.V(2).Infof("Supports migration from in-tree plugin: %s", supportsMigrationFromInTreePluginName)

// Create a new connection with the metrics manager with migrated label
metricsManager = metrics.NewCSIMetricsManagerWithOptions(provisionerName, metrics.WithMigration())
metricsManager = metrics.NewCSIMetricsManagerWithOptions(provisionerName,
// Will be provided via default gatherer.
metrics.WithProcessStartTime(false),
metrics.WithMigration())
migratedGrpcClient, err := ctrl.Connect(*csiEndpoint, metricsManager)
if err != nil {
klog.Error(err.Error())
Expand Down

0 comments on commit 3ea7e68

Please sign in to comment.