This repository holds monitoring as code (monaco) files for monitoring Keptn with Dynatrace, based on https://github.com/bacherfl/keptn-dt-monitoring .
- Download and Install Monaco from https://github.com/dynatrace-oss/dynatrace-monitoring-as-code
- Set Enviornment Variables for your DT enviornment (see
environments.yaml
), e.g.:environment1: - name: "Keptn Selfmon Env" - env-url: "{{ .Env.DT_API_URL }}" - env-token-name: "DT_API_TOKEN"
export DT_API_URL="https://your-dt-env.live.dynatrace.com export DT_API_TOKEN="<insert-your-api-token-here>
- Execute monaco as follows to verify that everything is valid:
monaco --environments environments.yaml --project keptn-selfmon --dry-run
- Run it using monaco
export DT_API_TOKEN=<insert-dt-api-token> monaco --environments environments.yaml --project keptn-selfmon --dry-run
- Auto-Tagging rules
keptn_selfmon
andkeptn_selfmon_service
are created on the Process Group - Service and Process Group Naming Rules are created
- Keptn SelfMon Dashboard is created