danatrace / pacman

Apache License 2.0
0 stars 0 forks source link

Prerequisites


The following Accounts and Tokens are needed to create this Sandbox


Vendor Prerequisite
Dynatrace Account, Api Token, Data Ingest Token
Dynatrace Cloudautomation Account, Api Token
AWS Account
Dockerhub Account, Access Token
Github Account, Personal Access Token


Sandbox Setup


Create a repository in Docker Hub


Fork Continuous Improvement Github Repository



Enable Issues for your Github Repository


Enable Github Workflow Actions for your Github Repository


Create Github Environment Variable Secrets



Create Github Project (by running workflow)






Create Github Environment

Create new Github Runner



AWS Set Up

Start Github Install Workflow

The Workflow will create the following Demo Content:


Create Webhooks in Cloudautomation

{
    "type": "test",
    "series": [
        {
            "timeseriesId": "custom:releaseevaluationscore",
            "dimensions": {
                "Score": {
                    {.data.evaluation.score
                    }
                },
                "Result": "{{.data.result}}",
                "Passed": 0,
                "Releaseversion": "{{.data.labels.buildId}}",
                "Buildversion": "{{.data.labels.buildId}}",
                "Buildnumber": {
                    {.data.labels.buildId
                    }
                },
                "Evaluationtime": "{{.time}}",
                "Application": "simplenodeservice-{{.data.stage}}-DG"
            },
            "dataPoints": [
                [
                    {
                        {.data.labels.evaltime
                        }
                    },
                    {
                        {.data.evaluation.score
                        }
                    }
                ]
            ]
        }
    ]
}

Set Workflow Variables

Variable info Where to find it
GITHUB_PROJECT_URL https url to the Project of your Github Repo created earlier
DOCKER_REPO_URL Link to the Docker Hub Repo created in the first step
DT_URL Dynatrace URL
DT_MZ_ID Dynatrace Management zone id the install workflow has created a Management Zone called "tnt-acer-svc" in your Dynatrace instanceyou can get the ID from a Dashboard link where the management zone wa set (gf=246278738970986)
DT_DEV_DB_ID Dynatrace Dev Slo Dashboard id The Install workflow has created a Dashboard Called KQG;project=slo-evaluation;stage=dev;service=tnt-acer-svc, go to this dashboard and get the id from the url (;id=76196020-e322-42c2-bc82-f7868171247e)
DT_STAGING_DB_ID Dynatrace Staging Slo Dashboard id The Install workflow has created a Dashboard Called KQG;project=slo-evaluation;stage=staging;service=tnt-acer-svc, go to this dashboard and get the id from the url (;id=76196020-e322-42c2-bc82-f7868171247e)
DT_PROD_DB_ID Dynatrace Production Slo Dashboard id The Install workflow has created a Dashboard Called KQG;project=slo-evaluation;stage=production;service=tnt-acer-svc, go to this dashboard and get the id from the url (;id=76196020-e322-42c2-bc82-f7868171247e)
DOCKER_TAG Docker tag of your Ducker hub repo created in the first step

Follow Initial Demo Workflow Run