25 Jul 2022 04:17 AM - last edited on 01 Sep 2022 04:21 AM by MaciejNeumann
We want to integrate Dynatrace with our Project using Webhook. For this, we need Dynatrace Events to be exported via Webhook. If this is successful, we can think to make Dynatrace our prospective service provider.
While browsing through the link: "https://www.dynatrace.com/support/help/setup-and-configuration/integrations/problem-notifications/we..." we found that you have Webhook integration for problems and we can successfully integrate that, too.
But our requirement is different. We need to export events in Dynatrace using Webhook, but not the problems. I browsed many links but I could not figure out how to export Dynatrace events to third party using Webhook.
Can someone help me on this.
1> https://www.dynatrace.com/support/help/dynatrace-api/environment-api/problems-v2/problems/get-proble.... <-- For this API, Webhook Integration steps present in the link https://www.dynatrace.com/support/help/setup-and-configuration/integrations/problem-notifications/we...
2> https://www.dynatrace.com/support/help/dynatrace-api/environment-api/events-v2/get-events <- For this API, Webhook Integration Steps has not been mentioned in the link.. But this is our requirement as per our Epic.
You can reach me on firstname.lastname@example.org
Solved! Go to Solution.
What kind of events do you want to sent webhooks for?
Problems are also based on events, so it might just satisfy your use case.
If not, there is no other webhook option besides problems. But you could write a simple script or DT Plugin that checks for events and sends the webhook.
25 Jul 2022 04:30 AM - last edited on 27 Mar 2023 03:16 AM by MaciejNeumann
Thanks @pahofmann for your quick response. but I want to export the below API output in dynatrace using webhook:
curl --location --request GET 'https://xxxxxxxx.live.dynatrace.com/api/v2/events?from=50&to=now ' \
--header 'accept: application/json; charset=utf-8' \
--header 'Authorization: Api-Token XXXXX'
so my question is
a> What is the difference between problems and events in dynatrace?
b> I guess all problems are events but not all events are problems in dynatrace? Can you explain me on the differences in details please. because I want to export all events let it be problem or something else to my project.
If you wish we can have a short call on this with my team also.
An event can cause a problem, but it doesn't have to. It could also be an informational event, like a reployment or process restart, which would not lead to creating a problem.
Other events, like service slowdown or high CPU would lead to a problem. Problems can cosist of more than one event though. If the Dynatrace AI thinks events are related it will group them into one problem.
There is no way to push events via webhook directly. You have to write either a script or dynatrace plugin to poll them and sent the webhook.