Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Enrich Deployment EVent sent to Dynatrace with Labels & Source #116

Closed
grabnerandi opened this issue Mar 30, 2020 · 1 comment · Fixed by #130
Closed

Enrich Deployment EVent sent to Dynatrace with Labels & Source #116

grabnerandi opened this issue Mar 30, 2020 · 1 comment · Fixed by #130

Comments

@grabnerandi
Copy link
Contributor

grabnerandi commented Mar 30, 2020

If an external tool, e.g: Jenkins, GItLabs Pipelines ... is doing the deployment and sends a deployment-finished event to Keptn it typically enriches it with e.g: Pipeline URL, GitCommit, ... by passing these values as labels

Users have asked to promote these labels to the corresponding Dynatrace Deployment EVent.
Therefore we suggest to look at all incomgin labels and re-use them for the sent deployment event to dynatrace. For labels such as deploymentName, deploymentVersion, ciBackLink, remediationAction the Dynatrace SErvice should forward them as exactly these propoerties. For all other labels just pass them as customProperties

sample - incoming keptn depoyment event

{
  data {
    labels: {
      "ciBackLink" : "mypipelinlink",
      "gitcommit" : "abcafawdfa"
   }     
...
}

that would translate into a Dynatrace Event like this

{
  "eventType": "CUSTOM_DEPLOYMENT",
  
  "ciBackLink":"bridge.keptn.mykeptn/context",
  "customProperties":{
    "ciBackLink":"mypipelinlink",
    "Git commit": "abcdef"
  }
}

This enhancement in combination with #115 gives our users full flexibility

@grabnerandi
Copy link
Contributor Author

close as it was implemented with 0.7.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant