Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name

v0.4.0 · public · Published 10 months ago

Asset Definition
Release Notes
Release Assets

Sensu Graphite Handler

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.


Download the latest version of the sensu-go-graphite-handler from bonsai, 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


Example Sensu Go handler definition:

    "api_version": "core/v2",
    "type": "Handler",
    "metadata": {
        "namespace": "default",
        "name": "graphite"
    "spec": {
        "type": "pipe",
        "command": "sensu-go-graphite-handler",
        "timeout": 10,
        "filters": [

Example Sensu Go check definition:

    "api_version": "core/v2",
    "type": "CheckConfig",
    "metadata": {
        "namespace": "default",
        "name": "dummy-app-prometheus"
    "spec": {
        "command": "sensu-prometheus-collector -exporter-url http://localhost:8080/metrics",
        "publish": true,
        "interval": 10,
        "output_metric_format": "influxdb_line",
        "output_metric_handlers": [

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.

Usage Examples


  sensu-go-graphite-handler [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
  -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")

Are you sure you want to report this asset?

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.


You must be signed in to report this asset.

Sign In with Github



Either download the source code:

Download Source

Or download the asset definition: