sensu-prom-mutator

command module
v0.0.0-...-e84593f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 6 Imported by: 0

README

Sensu Go Prometheus Mutator

TravisCI: TravisCI Build Status

The Sensu Go Prometheus Mutator is a Sensu Event Mutator which mutates Sensu Go Event metrics into to the Prometheus metric format. This mutator is intended to be used in combination with a TCP Event Handler to send metrics to a Sumo Logic collector.

This mutator turns this:

{
  "entity": "...",
  "metrics": {
    "handlers": [
      "sumologic"
    ],
    "points": [
      {
        "name": "sensu-go-sandbox.curl_timings.time_total",
        "tags": [
          {
            "name": "foo",
            "value": "42"
          }
        ],
        "timestamp": 1552506033,
        "value": 0.005
      },
      {
        "name": "sensu-go-sandbox.curl_timings.time_namelookup",
        "tags": [],
        "timestamp": 1552506033,
        "value": 0.004
      }
    ]
  },
  "timestamp": 1552506033
}

Into this:

sensu-go-sandbox.curl_timings.time_total{foo="42"} 0.005 1552506033000
sensu-go-sandbox.curl_timings.time_namelookup{} 0.004 1552506033000

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL