Go to file
Daniel Mikula e63cbbf5ff made adjustments for new krp 2023-05-16 13:46:28 +02:00
_BAK finalizations & Readme.md 2023-05-05 13:23:32 +02:00
more_utils Initial Commit 2023-04-21 12:31:32 +02:00
.gitignore added compass id, lastseents, and container name 2023-05-12 12:39:26 +02:00
Readme.md finalizations & Readme.md 2023-05-05 13:23:32 +02:00
create_report.py made adjustments for new krp 2023-05-16 13:46:28 +02:00
decorators.py prep for fetching data 2023-04-26 09:31:00 +02:00
dynatraceAPI.py Initial Commit 2023-04-21 12:31:32 +02:00
environment.yaml added testing slo & requirement txt 2023-05-02 14:40:40 +02:00
pagination.py Initial Commit 2023-04-21 12:31:32 +02:00
requirements.txt added remote dependency KeyRequestParser 2023-05-09 14:37:07 +02:00

Readme.md

Report Host & ProcessGroups for SLOs

This repository holds the code to generate the relevant Host and Processgroup Report.

Ouput is an excel file of all Host and Processgroups for all relevant SLOs (starting with (TP_))

Prerequisites

Python Version >= 3.10.x

Python packages

Before executing scripts, python requirements have to be satisfied. To do so, execute following command: pip install -r requirements.txt

.env file

To provide authentication for API calls, create ".env" file in the script directory with following definition:

<ENV NAME>=<ENV TOKEN>
	<ENV NAME> is name of environment variable. This name should be passed to "environment.yaml" file as "env-token-name" parameter
	Example:
	environment.yaml file: "- env-token-name: "GLOBAL_CONFIG_TOKEN"
	.env file: "GLOBAL_CONFIG_TOKEN=XXXXXXXXXXX"

Usage

python create_report.py

Files

create_report.py

This scripts generates the report.

environment.yaml

File containing environments to execute --auto-upload

Environment name:
	name: string										#name ov environment
	env-url: str										#url of environment
	env-token-name: str								#name of environment variable containing API token

requirements.txt

File containing required python packages