License
MIT License
master · public · Published over 5 years ago
{
"graphite_event": {
"server_uri": "https://graphite.example.com:443/events/",
"tags": [
"custom_tag_a",
"custom_tag_b"
]
}
}
{
"graphite": {
"server":"graphite.example.com",
"port":"2003"
}
}
{
"graphite_notify": {
"host":"graphite.example.com",
"port":"2003",
"prefix":"sensu.events"
}
}
{
"graphite_status": {
"host":"graphite.example.com",
"port":"2003",
"prefix":"sensu.events"
}
}
+Note that TCP Handler is preferred
{
"graphite_event": {
"server_uri": "https://graphite.example.com:443/events/",
"tags": [
"custom_tag_a",
"custom_tag_b"
]
},
"handlers":
{
"default": {
"type": "set",
"handlers": [
"graphite_event"
]
},
"graphite_tcp": {
"type": "tcp",
"socket": {
"host":"graphite.example.com",
"port":2003
},
"mutator": "only_check_output"
},
"graphite_event": {
"type": "pipe",
"filters": [
"custom_filter_a",
"custom_filter_b"
],
"command": "handler-graphite-event.rb"
}
},
"checks": {
"metrics_uptime": {
"standalone": true,
"type": "metric",
"handlers": [
"graphite_tcp"
],
"interval": 60,
"command": "metrics-uptime.rb --scheme sensu.host.$(hostname).uptime",
"subscribers": [
"core"
]
}
}
}
This plugin is Sensu Go enabled. You can map events into ruby by using the flag --map_go_event_into_ruby
as part of your handler command. Practically, this might look like:
---
type: Handler
spec:
metadata:
name: graphite_event
namespace: default
labels:
annotations:
type: pipe
command: handler-graphite-event.rb --map_go_event_into_ruby
timeout: 0
handlers: []
filters:
- is_incident
runtime_assets:
- sensu-plugins-graphite
- sensu-ruby-runtime
Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.
×