X-Git-Url: https://iankelling.org/git/?p=log-quiet;a=blobdiff_plain;f=sysd-prom-fail-install;fp=sysd-prom-fail-install;h=ad9845654480ff0cc93297bb90e7e7b9ee13caec;hp=244e0a51f09f1fac594e255848d1f3c24d9f5a7e;hb=5f3c302e1c06c5ff8e8b8d88dcc6d9699ebedb6d;hpb=559cd04634ae77a27b830c811c38f240993c1775 diff --git a/sysd-prom-fail-install b/sysd-prom-fail-install index 244e0a5..ad98456 100755 --- a/sysd-prom-fail-install +++ b/sysd-prom-fail-install @@ -13,6 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# usage: since this is a counter, in prometheus alert manager you will +# need to test something like: rate(node_systemd_unit_result_fail_count[30m]) > 0 + source /a/bin/errhandle/err [[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"