A container image that contains Dynatrace's Monaco (Monitoring as Code) toolset to be used within a CI/CD pipeline
Dynatrace Monaco (Monitoring as Code) v1.5.0 toolset available as monaco command. more info: https://github.com/dynatrace-oss/dynatrace-monitoring-as-code
-
At the bottom of the page, click on the link directing you to cloud configuration

-
Add a new pod template and fill it in as follows:
Name: A free name for you to give to the templateLabels: A label we will use to refer to this template,monaco-runnerwill be used in a later pipelineContainer template name: the name of this container,monacowill be used in a later pipelineDocker Image:dynatraceace/monaco-runner:release-v1.5.0Note a new release might be availableCommand to run:/bin/sh -cArguments to pass to the command:catAllocate pseudo-TTY:yes
-
Click on Save
-
In your
Jenkinsfileyou can now refer to the runner like this:pipeline { agent { label 'monaco-runner' } stages { stage('Dynatrace global config - Deploy') { steps { container('monaco') { script{ sh "monaco -v -e=$ENVS_FILE -p=global monaco/projects" } } } } } }
In cases where you need to use Monaco against a Dynatrace environment with untrusted certificates, you can use this image as a base for creating a custom Docker image. An example for that is in with_certs/Dockerfile
FROM dynatraceace/monaco-runner:release-v1.5.0
LABEL version="1.0" maintainer="Dynatrace ACE team<ace@dynatrace.com>"
RUN apk --no-cache add ca-certificates
ADD ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/bin/bash", "-l", "-c"]

