elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Need to create an alert if the queue size could not become zero with in 24 hours

Open rabiashaikabdulkader opened this issue 6 years ago • 0 comments

Hi @Qmando I am trying to create an alert as follows and little confused to achieve my situation.

We have a queue to monitor. Everynight 7:00 Pm PT ( which is 2AM UTC) this queue will be loaded with messages and will start getting processing. This queue should eventually complete with in 24 hours. I basically try to create an alert if the queue does not fall to zero with in a 24 hour period. Hence I created an alert as follows to throw me an aggregated alert by 01 AM every day. Is this correct ?? Is there any flaw with this? Kindly help as I have not created an alert of this type so far and could not come to a conclusion with the results achieved

`type: metric_aggregation index: myprodIndex* metric_agg_key: json.num_messages metric_agg_type: min max_threshold: 0 doc_type: _doc aggregation: schedule: "00 01 * * * *" buffer_time: hours: 23 #run_every: ( commented this for time being) #days: 1 filter:

  • term: kubernetes.container.name: get-sqs-stats
  • term: json.message: "Approximate number of messages on the queue"
  • term: json.queue: "my-queue"
  • range: json.num_messages: from: 1 `

rabiashaikabdulkader avatar Oct 05 '20 12:10 rabiashaikabdulkader