cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can a OneAgent Plugin be used to create custom events?

r_weber
Pro

The documentation only mentions metrics, but can a oneagent plugin also be used to e.g. create custom error events?

2 REPLIES 2

wolfgang_beer
Dynatrace Champion
Dynatrace Champion

Sure you can define an alerting section within the plugin json definition file in order to raise custom events for plugin metrics. Those events take part within the Dynatrace AI correlation and causation process.

See my blog post here:

https://www.dynatrace.com/news/blog/define-custom-events-via-custom-plugins-or-the-dynatrace-api/

Julius_Loman
Leader

In addition to @Wolfgang B. answer, I think it should be possible to use the Event reporting API available in OneAgent SDK directly from plugin code. See the package ruxit.api.events. Example code is in the notifications_openstack_plugin.py, but I'm not sure if this is supported or not.
Based on what I've seen, you should be able to send events of specific types (not alerts) that are attached to entities. But I think this API is not yet supported.