Skip to content

Instantly share code, notes, and snippets.

@ibspoof
Created April 15, 2016 00:08
Show Gist options
  • Save ibspoof/9d1b5fbe71d8eb3b9f2b743e87773d18 to your computer and use it in GitHub Desktop.
Save ibspoof/9d1b5fbe71d8eb3b9f2b743e87773d18 to your computer and use it in GitHub Desktop.
[posturl]
enabled=1
# levels can be comma delimited list of any of the following:
# DEBUG,INFO,WARN,ERROR,CRITICAL,ALERT
# If left empty, will listen for all levels
levels=
# clusters is a comma delimited list of cluster names for which
# this alert config will be eligible to run.
# If left empty, this alert will will be called for events on all clusters
clusters=
# the URL to send a HTTP POST to
url=https://events.pagerduty.com/generic/2010-04-15/create_event.json
# Set the type of posted data. Available options are 'json' or 'form'
post_type=json
# Fields specified here will override the default event data fields.
#
# They must be formatted as key-value pair, with key and value separated by
# an equals (=). Each pair after the first must be on its own line,
# indented beyond the first line
#
# You may use tokens found within the default event data for or in
# values. For example, some available keys are:
# cluster, time, level_str, message, target_node, event_source, success, api_source_ip, user, source_node
# Keys must be encapsulated in {brackets}.
#
fields=service_key=<your service key>
event_type=trigger
description=Cluster: {cluster}, Node: {source_node} Message: {message}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment