This use case shows how Event Driven Automation can be integrated with Dynatrace, handling and managing problems coming from the platform.
As the Alertmanager setup, it has two different integrations, one only showing problem information, and one raising a Service Now Incident upon problem trigger.
Both use cases will require a Dynatrace instance and you will need to have the API URL and and API Token available to configure the integration properly.
The simpler way to generate a fake problem is to generate an HTTP Monitor in Synthetic Monitoring and configure it in order to generate a fake request that will fail for sure. You can have a look here for ideas.
In this use case we will generate a Problem on Dynatrace and gather the information using the integration.
This will trigger a problem and EDA will convert the problem event to consumable information or a Service Now Incident.
Configure the following variables in the common variables file
dynatrace_api_url:
dynatrace_api_token:
Since the use case uses integration with Service Now, fill the following vars in common_vars.yml file
servicenow_instance_url:
servicenow_instance_user:
servicenow_instance_password:
and run:
ansible-playbook configure-use-case.yml -e @use-cases/use-case-dynatrace-setup.yml