Hi! Just getting into Dynatrace so bit of a newbie question, so apologies up front if this is a silly one 😎
I've built a OneAgent plugin that simply gathers a HOST metric (sysuptime) and returns it. It
One it was all setup, I monitored the logfiles on the agent and
It seems like I'm missing something super-obvious here, but I just can't put my finger on it.. Any advice on where to proceed from here to try to understand why it is no executing?
plugin.json & .py file attached.
All help/suggestions greatly appreciated!
Solved! Go to Solution.
Thanks for the info - it seems to have worked, although I'm still getting weird behavior (well.. unexpected on my part anyway 😀 ).
Looking at the plugin logs agent side I now see entries like the below, and in the GUI I can see one host (my test host) associated and 'monitoring correctly':
2022-10-02 23:12:21.403 UTC  info [native] 1064(MainThread) - [do] Plugin loop status: time_taken: 0.0, engines_info: ['<PluginEngine, meta_name:custom.python.test.sysuptime_plugin '
'id:0x1b0146b9ca0>, executions:17 ',
'<PluginEngine, meta_name:ruxit.perfmon.dotnetV4 id:0x1b0146b9760>, '
'<PluginEngine, meta_name:dynatrace.python.ntp id:0x1b0147efe80>, '
'<PluginEngine, meta_name:dynatrace.python.heartbeat id:0x1b014924340>, '
Strangely though, it doesn't seem to be sending the data through - I can't see it in the metrics explorer (although I can see the entry for the metric with no data), and same for API query. I've given it about 30 minutes since it started running correctly and no dice.
Anything you can see that might be stopping that part?
Thanks for the help!