Skip to content
This repository was archived by the owner on Feb 7, 2018. It is now read-only.

migrating to the new metrics tracker client

Patrick Titzler edited this page Dec 7, 2017 · 2 revisions

Overview

Why you should consider migrating ASAP

  • The existing Deployment Tracker Service no longer stores deployment tracking information that the Deployment Tracker client for Swift you are using is sending.
  • Existing links to the deployment badge image and the "Deploy to IBM Cloud" image that you might have embedded in your README will be broken soon.

Disabling deployment tracking

Should you decide to not migrate to the new client, please disable deployment tracking:

  • Remove the dependency on https://github.com/IBM-Bluemix/cf-deployment-tracker-client-swift.git from Package.swift
  • Remove the initialization and track invocation from your source code
    import CloudFoundryDeploymentTracker
    ...
    CloudFoundryDeploymentTracker(repositoryURL: "https://github.com/...git").track()
    
  • Update the documentation

Migration steps

To migrate to the new tracking infrastructure:

  • Remove the dependency on https://github.com/IBM-Bluemix/cf-deployment-tracker-client-swift.git from Package.swift
  • Remove the initialization and track invocation from your source code
    import CloudFoundryDeploymentTracker
    ...
    CloudFoundryDeploymentTracker(repositoryURL: "https://github.com/...git").track()
    
  • Follow the metrics client for Swift setup instructions
  • Update your Deployment badge URLs and "Deploy to IBM Cloud" button URLs in your README.md
    • Deploy your application to IBM Cloud
    • Open https://metrics-tracker.mybluemix.net/stats and log in (access is restricted to IBM employees)
    • Locate your repository entry
    • Open the repository details page and note the new button/badge URLs
    • Update your existing README.md and other collateral with the designated URL/markdown code.

Note: The existing deployment statistics for your repository will not be migrated.