Collector - Website Monitoring - Website Check Frequency
We have a scenario where we would like to use the Website Monitoring for API Checks.
The flexibility of the Groovy Script allows us to create custom checks to validate APIs are returning OK.
Some of these APIs are charged on a consumption basis, so we would like to avoid making high frequency calls to these APIs.
At the moment, it appears that the slowest frequency that the website checks is every 10 minutes.
Could this be increased to a larger limit (e.g. hourly would be great).
This would bring the frequency down from roughly 4370 to 730 checks per month.
Thanks
darylnz
Posted 4 years ago·Last reply 4 years ago
2 comments
darylnz
OP4 years agoInteresting , didn't realise that there was this feature. Will do some looking into that.
I suppose it may make some of the other metadata around the check (like response time not very accurate), as the 'cache hit' path would have fantastic response time ?
mnagel
·4 years agoSince it could take a while for LM to make a change (in my experience), you might want to adjust your code to deal with this. I am thinking something like check the current minute and return the last result if minute/10 != 0. Getting the last result could perhaps use the LM script cache (https://www.logicmonitor.com/support/collectors/collector-configurations/collector-script-caching).