cd_e2e_monitoring_config/READMEs/README - Testing.md

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"

  1. Clone repository in your local machine.
  2. 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.
  3. mv bin/monaco /usr/bin
  4. Execute the onboard.sh script with the following parameters: ./onboard.sh CD_ ApplicationName ./onboard.sh CD_ABC ABC
  5. To remove all CD_ABC configuration:
    1. Uncomment CD_ABC lines from delete.yaml.
    2. Execute monaco again to apply changes from delete.yaml: monaco deploy -e="environment.yaml" -p="CD_ABC" BMW-Dynatrace-config/
    3. 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

  1. 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