Fork 0
Scripts for generating Prometheus metrics
Go to file
Mike Gerwitz d511fa8d17
prom.awk: Correct regex escape
I'm not confident this ever worked as intended.  Unless behavior in
newer Gawks changed (since now it is issuing a warning where it wasn't

This replaced double quotes with '0'..which certainly solves the
security problem of double quotes, but not in the intended way.  I have
no labels with double quotes and so never noticed.

I suspect that I tried using // delimiters to avoid having to go through
this escape mess ("\\\\" to produce "\\" which is recogniezd as a single
"\" in the replacement, and then a fifth to escape the double quote.
What a mess.
2023-12-31 16:33:21 -05:00
printer/epson/et-2720 printer/epson/et-2720/metrics: Add serial number 2021-06-24 21:53:14 -04:00
x509/expiry Increase *_scrape_duration resolution to ms 2021-06-15 23:48:12 -04:00
COPYING Epson ET-2720 metrics 2021-02-23 00:16:42 -05:00
README.md x509/expiry: Add script 2021-06-15 23:19:24 -04:00
prom.awk prom.awk: Correct regex escape 2023-12-31 16:33:21 -05:00


Prometheus Scripts for Metrics

These are miscellaneous scripts that I use to generate metrics from various systems.

Warning: Unless otherwise mentioned, these scripts are not designed to be robust, or even wholly correct; they are sufficient for my particular uses and are not necessarily suitable for a production environment. I hope that they are useful as a guide to writing your own scripts for gathering similar metrics.

How To Use

These scripts are intended to be used with the textfile exporter of prometheus-node-exporter.

Available Metrics