# client_bash **Repository Path**: lernning/client_bash ## Basic Information - **Project Name**: client_bash - **Description**: zzsb prometheus client bash - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-06 - **Last Updated**: 2022-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 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](https://github.com/prometheus/pushgateway) server. It's written to use [GNU Bash](http://www.gnu.org/software/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.