mperham / inspeqtor

Monitor your application infrastructure!
GNU General Public License v3.0
1.66k stars 72 forks source link

INQ Configuration question #160

Closed hopewise closed 4 years ago

hopewise commented 4 years ago

I am sorry that I am writing here, but I could not find a tag for inspeqtor at SO, however, I've created a tag there for your repo :) https://stackoverflow.com/questions/59624961/what-is-meant-by-cycle

I need to understand what is meant by cycle when it comes to INQ Configuration as below:

check service memcached
  if memory:rss > 1200m for 4 cycles then alert
  if cpu:user > 40% for 2 cycles then restart

Thanks

mperham commented 4 years ago

A cycle is the 15 or 30 second period between checks. I forget the cycle length.

On Jan 7, 2020, at 00:53, Samir Sabri notifications@github.com wrote:

 I am sorry that I am writing here, but I could not find a tag for inspeqtor at SO, however, I've created a tag there for your repo :) https://stackoverflow.com/questions/59624961/what-is-meant-by-cycle

I need to understand what is meant by cycle when it comes to INQ Configuration as below:

check service memcached if memory:rss > 1200m for 4 cycles then alert if cpu:user > 40% for 2 cycles then restart Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

hopewise commented 4 years ago

So, as forif cpu:user > 40% for 2 cycles it means if cpu > 40% for 2 x 30 seconds continuously then alert?

How to set cycle to be 15 or 30 seconds?

mperham commented 4 years ago

cycle time is 15 seconds by default so it would be 2 x 15.

https://github.com/mperham/inspeqtor/wiki/Global-Configuration#miscellaneous