Use Canary Analysis with Dynatrace in Spinnaker

Learn how to configure and use Dynatrace for canary analysis in Spinnaker.

Proprietary

Before you can start using canary deployments, you need to enable Kayenta, the SpinnakerTM service for canary deployments. For more information, see the Configure Automated Canary Deployments in Spinnaker guide.

Dynatrace configuration

To enable Dynatrace, add the following dynatrace entry to kayenta-local.yml:

kayenta:
  dynatrace:
    enabled: true
    accounts:
    - name: my-dynatrace-account
      endpoint:
        baseUrl: <Your Dynatrace url> https://xxxxxxxx.live.dynatrace.com
      apiToken: <Your Dynatrace apiToken>
      supportedTypes:
      - METRICS_STORE

Canary configs

In the UI, you need to create a new canary config for the metrics you are interested in.

image

Add your Dynatrace query in the Dynatrace USQL field.

image

Pipeline configs

In your canary stage, set up the canary config you just created. Then use the application values from Dynatrace to fill in the Baseline + Canary Pair and MetricScope fields.

image


Last modified April 12, 2021: (8405118)