License
MIT License
v0.3.1 · public · Published almost 5 years ago
The Sensu Graphite Handler is a Sensu Event Handler that sends metrics to the time series database Graphite. Sensu can collect metrics using check output metric extraction or the StatsD listener. Those collected metrics
pass through the event pipeline, allowing Sensu to deliver the metrics to the configured metric event handlers. This Graphite handler will allow you to store, instrument, and visualize the metric data from Sensu.
N/A
Usage:
sensu-go-graphite-handler [flags]
Flags:
-h, --help help for sensu-go-graphite-handler
-H, --host string The hostname or address of the graphite server (default "localhost")
-n, --no-prefix Do not include *any* prefixes, use the bare metrics.point.name
-p, --port uint The port number to which to connect on the graphite server (default 2003)
-P, --prefix string The prefix to use in graphite for these metrics (default "sensu")
Assets are the best way to make use of this plugin. If you're not using an asset, please consider doing so! If you're using sensuctl 5.13 or later, you can use the following command to add the asset:
sensuctl asset add nixwiz/sensu-go-graphite-handler
If you're using an earlier version of sensuctl, you can download the asset definition from this project's Bonsai asset index page or releases or create an executable script from this source.
From the local path of the sensu-go-graphite-handler repository:
go build -o /usr/local/bin/sensu-go-graphite-handler main.go
---
type: Asset
api_version: core/v2
metadata:
name: sensu-go-graphite-handler
spec:
url: https://assets.bonsai.sensu.io/793026667633e5cb3e60ba1d063eb5a38ac9cd6b/sensu-go-graphite-handler_0.3.0_linux_amd64.tar.gz
sha512: af738d13865fdce508fc0c4457ef7473c01639cc92da98590d842eb535db0b51bccdef5c310adf0135b5e3b3677487fe7a1b4370ae3028367bc8117c3fb1824c
{
"api_version": "core/v2",
"type": "CheckConfig",
"metadata": {
"namespace": "default",
"name": "dummy-app-prometheus"
},
"spec": {
"command": "sensu-prometheus-collector -exporter-url http://localhost:8080/metrics",
"subscriptions":[
"dummy"
],
"publish": true,
"interval": 10,
"output_metric_format": "influxdb_line",
"output_metric_handlers": [
"graphite"
]
}
}
{
"api_version": "core/v2",
"type": "Handler",
"metadata": {
"namespace": "default",
"name": "graphite"
},
"spec": {
"type": "pipe",
"command": "sensu-go-graphite-handler",
"timeout": 10,
"filters": [
"has_metrics"
]
}
}
That's right, you can collect different types of metrics (ex. Influx, Graphite, OpenTSDB, Nagios, etc.), Sensu will extract and transform them, and this handler will populate them into your Graphite.
N/A
See the instructions above for asset registration.
Install and setup plugins on Sensu Core.
N/A
N/A
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.
×