RobustPerception/nrpe_exporter

Name: nrpe_exporter

Owner: RobustPerception

Description: Prometheus NRPE exporter

Created: 2017-09-27 16:08:39.0

Updated: 2018-05-24 12:05:15.0

Pushed: 2018-05-24 12:05:12.0

Homepage:

Size: 134

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NRPE exporter Build Status CircleCI

The NRPE exporter exposes metrics on commands sent to a running NRPE daemon.

Building and running
Local Build
go build nrpe_exporter.go
./nrpe_exporter

Visiting http://localhost:9275/export?command=check_load&target=127.0.0.1:5666 will return metrics for the command 'check_load' against a locally running NRPE server.

Building with Docker
docker build -t nrpe_exporter .
docker run -d -p 9275:9275 --name nrpe_exporter
Configuration

The nrpe_exporter requires little to no configuration.

The few options available such as logging level and the port to run on are configured via command line flags.

Run ./nrpe_exporter -h to view all available flags.

Note: The NRPE server you're connecting to must be configured with SSL disabled as this exporter does not support SSL.

Prometheus Configuration

Example config:

al:
rape_interval: 10s
pe_configs:
job_name: nrpe
metrics_path: /export
params:
  command: [check_load] # Run the check_load command.
static_configs:
  - targets: # Targets to run the specified command against.
    - '127.0.0.1:5666'
    - 'example.com:5666'
relabel_configs:
  - source_labels: [__address__]
    target_label: __param_target
  - source_labels: [__param_target]
    target_label: instance
  - target_label: __address__
    replacement: 127.0.0.1:9275 # Nrpe exporter.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.