<commit_before>Typical usage:

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

    : main cron job code goes here

    prometheus NewGauge name=end_time help='When the run ended'
    end_time set "$(date +%s)"
    prometheus PushAdd cronjob '' :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.

This is a very early form of the library, and it is missing many essential
features such as labels and documentation.<commit_msg>Update README for recent changes in usage<commit_after>Typical usage:

    io::prometheus::NewGauge name=start_time help='When the run began'
    start_time set "$(date +%s)"
    io::prometheus::PushAdd cronjob '' :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 cronjob '' :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.
{'fraction_non_alphanumeric': 0.09263959390862944, 'fraction_numerical': 0.01015228426395939, 'mean_word_length': 4.382252559726963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4951089', 'n_tokens_mistral': 510, 'n_tokens_neox': 454, 'n_words': 184}