1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
# Alert when the rate of events exceeds a threshold
# (Optional)
# Elasticsearch host
#es_host: localhost
# (Optional)
# Elasticsearch port
#es_port: 9200
# (Required)
# OpsGenie credentials
opsgenie_key: ogkey
# (Optional)
# OpsGenie user account that the alert will show as created by
#opsgenie_account: neh
# (Optional)
# OpsGenie recipients of the alert
#opsgenie_recipients:
# - "neh"
# (Optional)
# OpsGenie recipients with args
# opsgenie_recipients:
# - {recipient}
# opsgenie_recipients_args:
# team_prefix:'user.email'
# (Optional)
# OpsGenie teams to notify
#opsgenie_teams:
# - "Infrastructure"
# (Optional)
# OpsGenie teams with args
# opsgenie_teams:
# - {team_prefix}-Team
# opsgenie_teams_args:
# team_prefix:'team'
# (Optional)
# OpsGenie alert tags
opsgenie_tags:
- "Production"
# (OptionaL) Connect with SSL to Elasticsearch
#use_ssl: True
# (Optional) basic-auth username and password for Elasticsearch
#es_username: someusername
#es_password: somepassword
# (Required)
# Rule name, must be unique
name: opsgenie_rule
# (Required)
# Type of alert.
# the frequency rule type alerts when num_events events occur with timeframe time
type: frequency
# (Required)
# Index to search, wildcard supported
index: logstash-*
#doc_type: "golog"
# (Required, frequency specific)
# Alert when this many documents matching the query occur within a timeframe
num_events: 50
# (Required, frequency specific)
# num_events must occur within this amount of time to trigger an alert
timeframe:
hours: 2
# (Required)
# A list of Elasticsearch filters used for find events
# These filters are joined with AND and nested in a filtered query
# For more info: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl.html
filter:
- query:
query_string:
query: "@message: *hihi*"
# (Required)
# The alert is use when a match is found
alert:
- "opsgenie"
|