38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
# Dynatrace onboarding repo / Terreform config
|
|
This repository holds the Dynatrace configuration for onboarding purposes
|
|
|
|
# Prerequisites
|
|
|
|
## Python packages
|
|
Before executing scripts, python requirements have to be satisfied. To do so, execute following command:
|
|
pip install -r requirements.txt
|
|
|
|
# Usage
|
|
|
|
1. Clone template:
|
|
git clone --branch template ssh://git@git.bmwgroup.net:7999/opapm/coco_apm_terraform_onboarding.git
|
|
2. Create branch:
|
|
git checkout -b CD_<appname>
|
|
3.Install python dependencies:
|
|
pip install -r requirements.txt
|
|
4.Run onboarding script:
|
|
python ./onboarding.py -A CD_<app_name> -C <compass_id>
|
|
5. Review created files:
|
|
git status
|
|
6. Commit your changes:
|
|
git add <changes>
|
|
|
|
git commit -m "<OPMAAS-XXX> - Add initial configuration of application <app_name> to Dynatrace"
|
|
|
|
git push -u origin CD_<app_name>
|
|
7. Create pull request from CD_<app_name> to master
|
|
# Files
|
|
|
|
## onboarding.py
|
|
|
|
This scripts generates predefined configuration basing on your app_name and compass ids
|
|
|
|
## requirements.txt
|
|
|
|
File containing required python packages
|