For those who may not have seen previously, the EPAgent (aka the CA APM SDK) has been updated with a RESTful API. This update is part of CA APM 9.7.1 (no special download required).
For detail on the EPAgent and its REST API update, see the EPAgent 101: Use the SDK to Send Data to APM.
When I use a regular stateless plugin (script) and configure it in the properties file, there is an option to control what the EPAgent should do when the plugin does not report the metric:
Is there a way to have similar control over the metrics reported through the restful interface?
I noticed if I send a metric through the restful interface once, EPAgent will continue to report that value even if it does not receive it anymore.
This will continue to happen until I stop the EPAgent.
This depends on the Metric data types you are using. IntCounter and LongCounter stay at the same value until another value is reported Other data types like PerIntervalCounter or Int/LongAverage are reset every interval.
Thanks for your quick reply.
My metrics are Counter types.
So short answer is no, we don't have similar control.
My concern is that If the reporting script stops reporting for any reason, we won't be able to catch it quickly and it looks like the reporting host is healthy.
you can change them to PerIntervalCounters. But then you have to report a value every 15s.
There are only those two options for a single metric:
You could report an additional metric "data sent" or "alive" that is a PerIntervalCounter and set it to 1 every time you send metrics. Then you can alert if that is 0 for longer than your polling interval is.
Thank you very much Guenter, that helps.