From 080184f89d6ed96a9c3fa493ec0d53237d97f72d Mon Sep 17 00:00:00 2001 From: spleenftw <57947900+Spleenftw@users.noreply.github.com> Date: Fri, 23 Feb 2024 00:35:51 +0100 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3ec2c8b..3ac5d9c 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,12 @@ You can download the pre-compiled binaries from the ## LAST UPDATE Added a new metric called "service_openvpn" which is quite simple : if the openvpn service is up/active, equals 1. If not, equals 0. Added a script that restart automatically if he sees a change on the openvpn service with the help of "systemctl is-active --quiet" that returns an exit code if it's active. +It should look like this on your http://localip:9176/metrics page : +``` +# HELP service_openvpn Indicates whether the OpenVPN service is up (1) or down (0). +# TYPE service_openvpn gauge +service_openvpn 1 +``` ## Exemple on how to use it :