GithubHelp home page GithubHelp logo

sensu-opentsdb-handler's Introduction

sensu-opentsdb-handler

Table of Contents

Overview

The Sensu OpenTSDB Handler is a Sensu Event Handler that sends metrics to an OpenTSDB server via its telnet API.

Sensu can collect metrics using check output metric extraction or the statsd listener. Those collected metrics pass through an event pipeline, allowing Sensu to deliver normalized metrics to the configured metric event handlers.

This OpenTSDB handler enables extracting, tagging and storing that metric data into an OpenTSDB database.

Usage Examples

Help:

an opentsdb handler built for use with sensu

Usage:
  sensu-opentsdb-handler [flags]
  sensu-opentsdb-handler [command]

Available Commands:
  help        Help about any command
  version     Print the version number of this plugin

Flags:
  -h, --help                       help for sensu-opentsdb-handler
      --host string                OpenTSDB host to send metrics to
      --port string                OpenTSDB port to send metrics to (default "4242")
      --prefix string              Prefix metrics name with this string
      --prefix-entity-name         Prefix metrics name with the entity name
      --retries uint               Number of times to try to connect to the server (default 3)
      --retry-delay uint           Delay in seconds between connection attempts (default 1)
      --space-replacement string   String to replace spaces with if the entity name or tags contain any (default "-")
      --tag-host                   Add a host tag holding the entity name to metrics (default true)
      --tags stringToString        Add these tags to metrics (default [])

Configuration

Asset registration

Assets are the easiest way to make use of this handler. If you're using sensuctl 5.13 with sensu-backend 5.13 or later, you can use the following command to add this handler as an asset:

sensuctl asset add sensu/sensu-opentsdb-handler

If you're using an earlier version of Sensu, you can find the asset on the Bonsai Asset Index.

Resource definition

---
type: Handler
api_version: core/v2
metadata:
  name: send-metrics-to-opentsdb
  namespace: default
spec:
  command: sensu-opentsdb-handler --host localhost --prefix sensu --tags type=system,source=sensu
  runtime_assets:
  - sensu-opentsdb-handler
  type: pipe

Installation from source

The preferred way of installing and deploying this handler is to use it as an asset. If you would like to compile and install the plugin from source or contribute to it, download the latest version or create an executable script from this source.

From the local path of the sensu-opentsdb-handler repository:

go build

Contributing

For more information about contributing to this plugin, see Contributing.

sensu-opentsdb-handler's People

Contributors

ccressent avatar portertech avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.