Git Product home page Git Product logo

sensu-enterprise-metrics's Introduction

Sensu Enterprise Metrics Collector

TravisCI: TravisCI Build Status

The Sensu Go check plugin for collecting Sensu Enterprise (Classic) metrics.

Installation

Download the latest version of the sensu-enterprise-metrics from releases, or create an executable script from this source.

From the local path of the sensu-enterprise-metrics repository:

go build -o /usr/local/bin/sensu-enterprise-metrics main.go

Configuration

Example Sensu Go check definition:

{
    "api_version": "core/v2",
    "type": "CheckConfig",
    "metadata": {
        "namespace": "default",
        "name": "sensu-enterprise-metrics"
    },
    "spec": {
        "command": "sensu-enterprise-metrics -user username -password secret -latest",
        "subscriptions":[
            "sensu-enterprise"
        ],
        "publish": true,
        "interval": 10,
        "output_metric_format": "graphite_plaintext",
        "output_metric_handlers": [
            "influxdb"
        ]
    }
}

Usage Examples

Help:

$ sensu-enterprise-metrics -h
Usage of sensu-enterprise-metrics:
  -ca-cert string
    	Path to CA certificate
  -host string
    	Sensu Enterprise API host. (default "localhost")
  -insecure-skip-verify
    	Don't verify TLS hostnames
  -latest
    	Only return the latest point per Enterprise metric.
  -password string
    	Sensu Enterprise API password.
  -port int
    	Sensu Enterprise API port. (default 4567)
  -scheme string
    	Sensu Enterprise URL scheme (http or https) (default "http")
  -timeout int
    	Sensu Enterprise API request timeout (in seconds). (default 15)
  -user string
    	Sensu Enterprise API user.

Contributing

See https://github.com/sensu/sensu-go/blob/master/CONTRIBUTING.md

sensu-enterprise-metrics's People

Contributors

portertech avatar palourde avatar echlebek avatar

Watchers

Jef Spaleta avatar James Phillips avatar James Cloos avatar Francis Guimond avatar  avatar Michael Gibson avatar Gustav Danielsson avatar  avatar Justin Henderson avatar

Forkers

isabella232

sensu-enterprise-metrics's Issues

Plugin appears to report incorrect metrics

When curling the metrics endpoint, I see that there are 16,000+ clients:

{"metric":"clients","points":[[1587761650,16077],[1587761660,16077]

However, this plugin is reporting significantly less, against the same host:

sensu_enterprise_clients 576 1587761710
sensu_enterprise_clients 471 1587761720
sensu_enterprise_clients 463 1587761730
sensu_enterprise_clients 494 1587761740
sensu_enterprise_clients 492 1587761750
sensu_enterprise_clients 482 1587761760
sensu_enterprise_clients 566 1587761770
sensu_enterprise_clients 468 1587761780
sensu_enterprise_clients 505 1587761790

Needs to support HTTPS

Presently, the plugin assumes HTTP, but will not connect to HTTPS endpoints. The plugin should support an option to use HTTPS.

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.