I’m looking for a solution to post new events from infrastructural components (Element Managers) that can use the Events API to post new (error) events. I’m trying to post new events but they seem to only accept them if the hostname already exists in the Dynatrace environment. How should I post these events so they will be visible in
DT so I can use the notifier to send them to a service management solution like ServiceNow.
A normal lifecycle is problem problem-opening event resulting in a Dynatrace problem. Problems can be then sent using alerting profiles and integrations to 3rd party tools such as Service Now.
Dynatrace works on the SmartScape entity model. This model can be enriched using custom topology and then you can send such problem opening events to those entities. So basically you need to create those custom entities first to be able to send events to them and raise problems.
There are also other possible solutions such as sending just log events and having problems created from logs only.
What element manager is the source of your events? Does it know at least a list of the devices it is managing?
As long as, the hosts aren’t monitored within the monitoring tenant, you can create custom devices through the Rest Api or the UI as well both are applicable based on your preferences and the best suitable for your team.
To create custom devices through Rest Api, create access token with “entities.wite” and use it to create a custom device through Environment APi v2 or the curl command as per preferences.
Create access token with “events.ingest” to utilize it while using the API to ingest events into the custom devices.
you can utilize rest Api externally to create custom devices and ingest events as well without need to access the UI through the generated Curl command from the monitoring tenant.
Finally
You have options to either:
Continue with current integration with ServiceNow to keep posting notifications to SNow URL.
Enable the below options in Dynatrace integration side