2.0 KiB
2.0 KiB
(Dynatrace Admins) Testing
This guide contain the steps to set up monaco and automatically onboard and application called "ABC" under the MZ "CD_ABC"
- Clone repository in your local machine.
- Define environment variables for the environment.yaml file. i.e. export xxu26128_TOKEN= Dynatrace API token Do the same for the rest of the environments. Follow this link to learn how to generate a token in Dynatrace.
- mv bin/monaco /usr/bin
- Execute the onboard.sh script with the following parameters: ./onboard.sh CD_ ApplicationName ./onboard.sh CD_ABC ABC
- To remove all CD_ABC configuration:
- Uncomment CD_ABC lines from delete.yaml.
- Execute monaco again to apply changes from delete.yaml: monaco deploy -e="environment.yaml" -p="CD_ABC" BMW-Dynatrace-config/
- Remove CD_ABC configuration folder
Results
- CD_ABC Management Zone created containing all entities with ABC tag.
- PROD/E2E/INT Dashboards for CD_ABC components.
- PROD/E2E/INT Alerting Profiles for CD_ABC components.
Update configuration
- Execute the following command:
monaco deploy -e="environment.yaml" -p="00_Global-Config" BMW-Dynatrace-config/
- Under -p you can select the configuration you want to update
Debugging
- set environment variable MONACO_REQUEST_LOG=mylogfile.log to see what exactly gets sent to DT
Download configuration
Configuration has been downloaded and set up under BMW-Dynatrace-config. It's not necessary to be downloaded again. To download the existing configuration for all tenants, execute the following commands: 1. cd downloaded-config 2. monaco download -e='../environment.yaml' To download the existing configuration for a specific tenant, execute the following commands: 1. cd downloaded-config 2. monaco download -e='../environment.yaml' -s EMEA-Prod
Automatic config environment variables
- source ./exports.sh