-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created readme, starting to document
- Loading branch information
1 parent
0a5c19c
commit ed04f06
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Sensu Prometheus Collector | ||
|
||
The Sensu Prometheus Collector is a Sensu Check Plugin that collects | ||
metrics from a Prometheus exporter or the Prometheus query API. The | ||
metrics are outputted to STDOUT in one of three formats, Influx (the | ||
default), Graphite, or JSON. | ||
|
||
### Examples | ||
|
||
```shell | ||
$sensu-prometheus-collector -exporter-url http://localhost:8080/metrics | ||
go_memstats_last_gc_time_seconds value=0.000000 1506991233 | ||
go_memstats_mspan_sys_bytes value=32768.000000 1506991233 | ||
... | ||
``` | ||
|
||
```shell | ||
$sensu-prometheus-collector -exporter-url http://localhost:8080/metrics -output-format graphite -metric-prefix foo.bar. | ||
foo.bar.go_memstats_stack_inuse_bytes 294912.000000 1506991405 | ||
foo.bar.go_memstats_mallocs_total 6375.000000 1506991405 | ||
... | ||
``` | ||
|
||
```shell | ||
$sensu-prometheus-collector | ||
up,instance=localhost:9090,job=prometheus value=1.000000 1506991495 | ||
``` |