> If you want to minimize your work, you can write a test as a one-shot 
> standalone program in any language of your choice, and either:
> 1. Run it from cron, write the results to a file, and pick them up by 
> node_exporter textfile collector; OR
> 2. Run it on demand from exporter_exporter 
> <https://github.com/QubitProducts/exporter_exporter> using the "exec" 
> method; OR
> 3. Run it as a nagios plugin under nrped, and query it from nrpe_exporter 
> <https://www.robustperception.io/nagios-nrpe-prometheus-exporter/>

Another 'run a program and provide its output as metrics' option is the
third party script exporter,
https://github.com/ricoberger/script_exporter

The basic usage of the script exporter is very similar to the blackbox
exporter, but of course you have to start a program every time. We've
been happily using it for years for a variety of checks that require
more sophistication (and fine grained metrics) than the Blackbox
exporter can handle.

(Another 'run it from cron' option is to have it push metrics into a
Pushgateway instance, but my view is that generally you want to use the
node_exporter textfile collector for that if it's possible. Pushgateway
usually has various drawbacks compared to the node_exporter approach.)

        - cks

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prometheus-users/3646228.1734204215%40apps0.cs.toronto.edu.

Reply via email to