Coder Social home page Coder Social logo

grafana-sensu-datasource's Introduction

Sensu Datasource Plugin for Grafana

Sensu Sensu is a monitoring system typically front-ended by Uchiwa.

Grafana

Screenshot of plugin with datatable panel:

Results can be return as a table or as JSON, this is the "table" data: Sensu Results as Table

This is the JSON data: Sensu Results as JSON

This is the same JSON data but will column selection:

Sensu Results as JSON Column Selection

Additional docs at github.io

About this plugin

This is a datasource plugin for integrating Grafana 3.x/4.x and Sensu. It provides a query builder to return data about Events, Results, Aggregates, and Clients.

The query builder provides hints for each type, with two optional dimensions "Client Name" and "Check Name".

Running with Docker

A docker-compose.yml file is provided to easily stand up a Grafana 3.x server with this datasource mapped to the container.

Installation

  • Copy/clone this repos into /var/lib/grafana/plugins
  • Restarting grafana-server is required to pick up the plugin.

Once the plugin is "feature complete" a PR will be made to add this plugin to the official datasource plugins on Grafana.net

Using the plugin

Setup datasource

And and test datasource by setting the Url to the Sensu API, typically on port 4567.

Add and Test Datasource

Using the query builder

Add a new "Table" to a dashboard and select the Sensu datasource. Choosing results, you will get a "dimensions" option to narrow the dataset.

There are 11 options for the datasource:

  1. Aggregates: Returns aggregate check states, with 7 different "modes"
  2. List
  3. Clients
  4. Checks
  5. Results Critical
  6. Results OK
  7. Results Unknown
  8. Results Warning
  9. Check Subscriptions: Returns list of checks associated with a subscription Dimensions
  • name - name of check
  • aggregate - name of aggregate
  • type (metric|check)
  • source - JIT client
  1. Clients
  2. Client History: Similar to Results, but with additional data
    • NOTE: this is a deprecated API but still actively used by Uchiwa
  3. Events: Returns active events (alerts)
  4. Events as JSON: Returns active events (alerts)
  5. Results as JSON: Returns check results in JSON format
  6. Results as Table: Returns check results in Table format
  7. Sensu Health
  8. Silenced Entries
  9. Stashes

Dimensions

Choosing results, you will get a "dimensions" option to narrow the dataset.

Dimensions Select the textbox for metrics, and hints will be provided:

Tunneling

ssh -i ~/.ssh/environment.pem -L 4567:localhost:4567 [email protected]

References

More info about Sensu here.

TODO

source type: client history needs dimension: check_name filter and min/max/current/avg/total selector source type: aggregates, aggregate mode: list need dimension to pick aggregate field “checks/clients/crit/ok/stale/etc” and min/max/current/avg/total selector

grafana-sensu-datasource's People

Contributors

briangann avatar

Watchers

 avatar  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.