dynatrace-synthetic-service

This implements a synthetic-service for Keptn.
Prerequirements
The keptn dynatrace-service must be installed in order to use the dynatrace-synthetic-service as it is using the Dynatrace credentials from it.
Compatibility Matrix
Installation
The dynatrace-synthetic-service can be installed as a part of Keptn's uniform.
Deploy in your Kubernetes cluster
To deploy the current version of the synthetic-service in your Keptn Kubernetes cluster, apply the deploy/service.yaml file:
kubectl apply -f deploy/service.yaml
This should install the synthetic-service together with a Keptn distributor into the keptn namespace, which you can verify using
kubectl -n keptn get deployment synthetic-service -o wide
kubectl -n keptn get pods -l run=synthetic-service
Up- or Downgrading
Adapt and use the following command in case you want to up- or downgrade your installed version (specified by the $VERSION placeholder):
kubectl -n keptn set image deployment/synthetic-service synthetic-service=checkelmann/synthetic-service:$VERSION --record
Uninstall
To delete a deployed synthetic-service, use the file deploy/*.yaml files from this repository and delete the Kubernetes resources:
kubectl delete -f deploy/service.yaml
Configuration
The Service is listening for the sh.keptn.events.deployment-finished event, and will create a Synthetic Monitor in Dynatrace with the deploymentURIPubli as check URL.
You can add labels in your keptn event to confiure the check:
"SyntheticManuallyAssignedApp": "APPLICATION-XYZ Assign the monitor to an application.
"SyntheticFrequency": "5 Check Frequency in Minutes
Development
Development can be conducted using any GoLang compatible IDE or Text-Editor (e.g., Jetbrains GoLand, VSCode with Go plugins).
License
Please find more information in the LICENSE file.