Coralogix provides seamless integration with Spinnaker
deployment pipelines so you can push tags to Coralogix automatically from your pipelines.
Spinnaker
deployed, for more information on how to deploy: https://spinnaker.io/setup/Data Flow --> API Keys --> Alerts, Rules and Tags API Key
To create a custom webhook stage, you’ll need to add configuration for the stage in orca-local.yml
.
Refer to the following table to select the correct url
for your Coralogix domain.
Domain | Version Tags endpoint |
.com | https://webapi.coralogix.com/api/v1/external/tags/ |
.us | https://webapi.coralogix.us/api/v1/external/tags/ |
.in | https://webapi.app.coralogix.in/api/v1/external/tags/ |
.app.coralogixsg.com | https://webapi.coralogixsg.com/api/v1/external/tags/ |
eu2.coralogix.com | https://webapi.eu2.coralogix.com/api/v1/external/tags/ |
cx498.coralogix.com | https://webapi.cx498.coralogix.com/api/v1/external/tags/ |
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
Add a new stage to push the tag to Coralogix:
Configure stage to push tag to your account:
Note: You can use Spinnaker pipeline expressions to define parameters for the tag.
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email to [email protected].