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

Can a OneAgent plugin be used to create custom events?

DynaMight Champion
DynaMight Champion

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

Certified Dynatrace Master, Dynatrace Partner -

Dynatrace Leader
Dynatrace Leader

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:

DynaMight Legend
DynaMight Legend

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 Example code is in the, 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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts