I developed an extension that runs locally using dt-extensions-sdk.
I have it set up so that a START log is issued at the beginning of the query function.
After running the extension for several days in a row, I noticed that sometimes a minute’s worth of data was missing.
When I looked at the START log in python3.log, I found that the time was as follows:
2024-06-16 22:28:59,931
2024-06-16 22:29:59,952
2024-06-16 22:30:59,953
2024-06-16 22:31:59,983
2024-06-16 22:33:00,012
2024-06-16 22:34:00,032
2024-06-16 22:35:00,031
There is no log that started at 22:32.
Looking at other start logs, I found that the execution interval was between 60.00 and 60.05 seconds.
It looks like 0.05 seconds piled up to a minute where the plugin was not executed. I think it’s strange that only the metrics from the extension are missing, even though the items that OneAgent retrieves as standard (ex: builtin:host.cpu.usage) are not missing.
I don’t know if there’s a problem with the implementation, or with OneAgent or the SDK, so please help me.
Thank you.
Takayuki.



