We're launching a new cybersecurity venture! Learn more about Snowbit >

Spinnaker Version Tags Spinnaker Version Tags

Last Updated: Mar. 30, 2022

Coralogix provides seamless integration with Spinnaker deployment pipelines so you can push tags to Coralogix automatically from your pipelines.

Prerequisites

  • Have Spinnaker deployed, for more information on how to deploy: https://spinnaker.io/setup/
  • API Token – should be taken from Data Flow --> API Keys --> Alerts, Rules and Tags API Key
Coralogix Alerts API key

Configuration

To create a custom webhook stage, you’ll need to add configuration for the stage in orca-local.yml.

Here is the content of orca-local.yml:

webhook:
  preconfigured:
    - label: Coralogix Tag
      type: coralogixTag
      enabled: true
      description: Push tag to Coralogix
      parameters:
        - label: Coralogix API URL
          name: url
          type: string
          description: Coralogix API endpoint
          defaultValue: coralogix.com
        - label: Coralogix API Token
          name: token
          type: string
          description: Coralogix API Token
        - label: Tag
          name: tag
          type: string
          description: Tag Name
        - label: Application
          name: application
          type: string
          description: Application Name
        - label: Subsystem
          name: subsystem
          type: string
          description: Subsystem Name
      url: https://webapi.${parameterValues['url']}/api/v1/external/tags
      method: POST
      customHeaders:
      Authorization:
        - Bearer ${parameterValues['token']}
      Content-Type:
        - application/json
      payload: |-
        {
            "name": "${parameterValues['tag']}",
            "application": ["${parameterValues['application']}"],
            "subsystem": ["${parameterValues['subsystem']}"],
            "iconUrl": "https://raw.githubusercontent.com/coralogix/integrations-docs/master/integrations/spinnaker/images/spinnaker.png"
        }

After you create a custom configuration, redeploy your Spinnaker instance with Halyard:

$ hal deploy apply

Usage

Add a new stage to push the tag to Coralogix:

New Stage

Configure stage to push tag to your account:

Stage Configuration

Note: You can use Spinnaker pipeline expressions to define parameters for the tag.

On this page