Hi there,
At the moment I am wondering if some people have experience with adding time constraints on triggers.
Basically I'm monitoring big websites on special metrics, they need to be quite trigger happy since we need to know right away if something breaks. During business hours this works all fine, but outside business hours we sometimes get false positives (no new user registrations in the last 15 min at 4am in the morning
So I need the triggers only to be active during certain hours. The first approach was to handle this in actions, simply not sending alerts during certain hours. But this turned out to be very suboptimal; some things I do want the alerts even at night, and things like 'top 100 most busy triggers' give the wrong information.
So the solution is to make the triggers itself time depended, and here comes my issue: say I want to alerts between 2am and 7am, checking every 15min min - I could do something like this (hostsnames changed for the obvious reasons):
{bla-ops001.intern.tldbla.com:dailyXcount.max(900)}<1 & {bla-ops001.intern.tldbla.com:dailyXcount.time(0)}<0100 00 & {bla-ops001.intern.tldbla.com:gumtree.dailyadcount.time (0)}>070000
But this won't work since at 1pm (130000):
>070000 is TRUE
<010000 is FALSE
I'm sure the solution must be easy, any hints/experiences would greatly be appreciated!
At the moment I am wondering if some people have experience with adding time constraints on triggers.
Basically I'm monitoring big websites on special metrics, they need to be quite trigger happy since we need to know right away if something breaks. During business hours this works all fine, but outside business hours we sometimes get false positives (no new user registrations in the last 15 min at 4am in the morning

So I need the triggers only to be active during certain hours. The first approach was to handle this in actions, simply not sending alerts during certain hours. But this turned out to be very suboptimal; some things I do want the alerts even at night, and things like 'top 100 most busy triggers' give the wrong information.
So the solution is to make the triggers itself time depended, and here comes my issue: say I want to alerts between 2am and 7am, checking every 15min min - I could do something like this (hostsnames changed for the obvious reasons):
{bla-ops001.intern.tldbla.com:dailyXcount.max(900)}<1 & {bla-ops001.intern.tldbla.com:dailyXcount.time(0)}<0100 00 & {bla-ops001.intern.tldbla.com:gumtree.dailyadcount.time (0)}>070000
But this won't work since at 1pm (130000):
>070000 is TRUE
<010000 is FALSE
I'm sure the solution must be easy, any hints/experiences would greatly be appreciated!
Comment