# BMW Monaco ## Dynatrace - Get Started! As the Runtime cluster is instrumented with dynatrace automatically no further actions are needed. ### Initial Setup To monitor your application with Dynatrace, please follow these steps: 1. Make sure you have access to Dynatrace. If not, follow this [link](https://atc.bmwgroup.net/confluence/display/OPAPM/User+Guide+-+Access+to+new+Dynatrace+Solution) 2. Clone this repository in your local machine: `git clone https://atc.bmwgroup.net/bitbucket/scm/opapm/cd_e2e_monitoring_config.git` 4. Create a branch using your Component/Application name with the following format: `git checkout -b CD_` **What value should i use for ?** - i.e. for vehicle-composite-service you need to get [this](https://code.connected.bmw/runtime/tf-cluster-apps/blob/master/euprd/apps/vehicle-composite-service.tf#L8) value. 5. Execute the script passing as parameters, again, the : `./onboard.sh CD_ ` 6. (optional) Configure Notification System - Dynatrace AI automatically detects anomalies in your applications and generate problems, visible within the UI. Dynatrace offers several out-of-the-box integrations with problem notification systems such as Email, MS Teams and ITSM. - Notification systems are not configured by default. If you want to enable them for your application, please follow this [link](https://atc.bmwgroup.net/bitbucket/projects/OPAPM/repos/cd_e2e_monitoring_config/browse/onboarding/CD_newComponentTag/notification/README.md). 7. (optional) Add databases to Management Zone - The script described in step 5 will create the configuration for all entities related to your application (Host, Processes, Services) but not the databases. - To add your databases into Dynatrace you need to add an extra rule to the [Component.json](https://atc.bmwgroup.net/bitbucket/projects/OPAPM/repos/cd_e2e_monitoring_config/browse/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json) file. You can use [this](link) example to understand exactly what you have to do. 8. Commit and pull request to merge the branch to the master: `git add ` `git commit -m " configuration changes"` `git push -u origin ` ### Results **Important** - Configuration changes (like in dashboards, alerting profiles) must be done via a pull request. Changing a dashboard just in the environment, will cause that it will be overwritten by Monaco. - Once the pull request is approved and **BMW Monaco** executes, all the configuration created in the previous steps will be visible in Dynatrace: #### Primary Configuration - *Management Zone* - Used to filter entities. - Can be used to navigate the environment, filtering within dashboards and alerting profiles. - You can use the generated MZ clicking on the filter at the top-right corner within the Dynatrace UI. - Learn how to configure/improve your Management Zone [here](link) ([Do i need to configure it?](link)) ![Management Zone](img/MZ.PNG) - *Dashboards* - Based on a template, - Initial dashboard with a general overview of the health of the application. - For Prod environements, PROD and E2E dashboards will be generated. - For PreProd environments, INT dashboard will be generated. - Learn how to configure/improve your Dashboards [here](link) ([Do i need to configure it?](link)) ![Dashboard](img/Dashboard.PNG) **Recommended** - Participate in one of the Dynatrace trainings to understand - What kind of changes in the configuration are possible and how it's going to improve monitoring. - Hands on in how to work with Monaco - How to use Dynatrace in the most efficient.