Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

We can configure a listening webhook in Insights where Spinnaker will forward payloads with event details whenever any event(viz. pipeline execution, cluster deletion etc.) occurs through the Spinnaker UI. The echo-rest module in spinnaker allows us to set downstream listeners to keep track of Spinnaker events. It will forward any event received from Orca, igor or echo to the webhooks registered.

Here we will use our InSights webhook functionality to generate a listening webhook and integrate the same with Spinnaker.

 Configuration Steps

Step 1. Configure a webhook in Insights:

  1. Login to InSIghts and click on the Configuration -> Webhook Configuration option.

  2. Click on the “+” icon highlighted in the webhook configuration screen to add a new webhook:

  3. Provide all necessary details such as the name of the Webhook, what is the tool for which it will be used, the label with which data will be forwarded to Neo4j etc. All fields marked with asterisk(*) are mandatory fields. (Refer here for more details)

  4. The Response Template defines which fields are to be consumed by InSights. Values inside this field should be comma separated. Below is an example response template for Spinnaker events:

    details.type=eventType,
    details.created=creationTime,
    details.application=application,
    content.executionId=executionId,
    content.execution.name=name,
    content.execution.status=status,
    content.execution.startTime=startTime,
    content.execution.endTime=endTime,
    content.execution.description=description,
    content.context.serverGroupName=podName,
    content.execution.trigger.user=username,
    content.taskName=taskName,
    content.context.canaryConfigId=canaryConfigId,
    content.context.canaryScore=canaryScore,
    content.context.scoreThresholds.pass=passScore,
    content.context.scoreThresholds.marginal=marginalScore,
    content.context.canaryPipelineStatus=canaryStatus,
    content.context.scopes.default.controlScope.scope=base,
    content.context.scopes.default.experimentScope.scope=canary 

  • No labels