Skip to content

aecolley/client_bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Typical usage:

io::prometheus::NewGauge name=start_time help='When the run began'
start_time set "$(date +%s)"
io::prometheus::PushAdd job=cronjob instance='' gateway=:9091

: main cron job code goes here

io::prometheus::NewGauge name=end_time help='When the run ended'
end_time set "$(date +%s)"
io::prometheus::PushAdd job=cronjob instance='' gateway=:9091

This is a library to help you push metrics from your Bash script to a Prometheus pushgateway server.

It's written to use GNU Bash's features, mainly because the basic POSIX shell doesn't support the local keyword.

The library is still missing some essential features such as documentation and non-gauge metrics.

About

Client Bash library for talking to the Prometheus pushgateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages