Is possible setup the metric's frequency in my script to send data to EPA Agent? I know that it's possible in Stateless, but it's possible to control this in stateful mode?
The problem is that my script needs to be running in stateful mode, but when sending the data to the EPA, the frequency of the metric should be in 1 minute, but in APM this frequency is in 6 minutes.
Without seeing your script it is only speculation but if you are using python or some other language that uses a buffer to store the output before sending it then you may need to flush the buffer after each execution. In stateless you would not see this effect as the buffer would flush on exit anyway. The behaviour you are descibing looks like you are getting the data each time the buffer fills and is flushed automatically.
For python it would be
hope this helps
I thought I had written this up as a kb but turns out I forgot to publish it - have done so now
Getting gaps in metric data for data from an EP Ag - CA Knowledge
Perfect Mike.. Thank you so much!!! We'll check this....