telegraf/plugins/outputs/pagerduty/README.md

22 lines
573 B
Markdown
Raw Normal View History

2016-05-27 16:02:59 +00:00
# PagerDuty output plugin
This plugin is used to send PagerDuty alerts based on a metric field.
Following is an example of send PagerDuty alerts based on "time_iowait" field
of the "cpu" metric. It will send PagerDyty alert any time the "time_iowait"
value is more than 50
2016-08-21 07:35:45 +00:00
Optionally, alerts can be restriced to metrics with a given set of tags
2016-05-27 16:02:59 +00:00
```toml
[[outputs.pagerduty]]
service_key = "<SERVICE KEY>"
metric = "cpu"
description = "Check CPU"
field = "time_iowait"
expression = "> 50.0"
2016-08-21 07:35:45 +00:00
[[outputs.pagerduty.tags]]
name = "role"
value = "web"
2016-05-27 16:02:59 +00:00
```