Baxic Command Exporter

About

Baxic Command Exporter is a Prometheus Exporter used to collect metrics from a monitored host using any commands configured in the configuration file, e.g. in a similar way like the NRPE agent for Nagios or Icinga. It's written in Bash and uses the Ncat tool to listen on TCP port 9088.

The script is based on the principle described in another article Simple web server in Bash using ncat.

Download
Baxic Command Exporter
license:GPLv3



git:git clone git://github.com/baxic-cz/baxic-command-exporter.git


Documentation

Actual documentation is available in the README file on GitHub.

Summary

Baxic Command Exporter may be used in cases when you cannot find a suitable existing Prometheus Exporter or don't want to run many different exporters for a few metrics. You can define the commands or command sequences by yourself and process them to retrieve metrics when required by Prometheus.

Of course, there're alternative options how to retrieve non-standard metrics, e.g. using a Textfile collector of Prometheus Node Exporter and running cron commands to update the file regularly, using a Pushgateway and possibly others.

However, the main advantage of Baxic Command Exporter is it's simplicity and on-line processing of incoming requests.

 

Inserted: 2021-04-17 21:18:58
Last updated: 2021-05-02 07:23:25