Skip to content

Instantly share code, notes, and snippets.

@gustavomf-cit
Created August 29, 2018 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavomf-cit/3b95375a61d7d51db5c1736e20dcd0a3 to your computer and use it in GitHub Desktop.
Save gustavomf-cit/3b95375a61d7d51db5c1736e20dcd0a3 to your computer and use it in GitHub Desktop.
elastalert agregation
name: slack_alert_x
type: any
buffer_time:
minutes: 30
index: api_x*
doc_type: api_x
bucket_interval:
minutes: 30
sync_bucket_interval: true
max_threshold: 0.999
metric_agg_key: time_callback
metric_agg_type: avg
query_key: apiname
filter:
- query:
query_string:
query: "apiname:\"awesomex\""
- range:
time_spent:
from: 0.9
to: 300
realert:
hours: 1
alert:
- slack
alert_subject: "performance issue"
slack_webhook_url:
- https://hooks.slack.com/services/zzzzzzzzzzzzzzzzzzzzzzzzzzzz/zzzzzzzzzzzzzzzzzzzzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment