Mike Gerwitz
d511fa8d17
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 previously). 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. |
||
---|---|---|
printer/epson/et-2720 | ||
x509/expiry | ||
COPYING | ||
README.md | ||
prom.awk |
README.md
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
.