In our open VPN we have some users, we need to create a dashboard for the users and It should show no of users in dashboard
we have to setup a threshold is
in the above step we are monitoring no of users, we have to setup one threshold value for no of users if its greater-than threshold that should trigger
Srinu
So, am I correct in understanding that you want a dashboard which displays the
number of users currently connected to OpenVPN, and has an alert which
triggers something to happen if that number exceeds a specific threshold?
So, is your question “how do I start creating a dashboard in Grafana?” or is
it “how do I measure the numbers of users on OpenVPN?”
Grafana documentation | Grafana documentation would be your starting point for the
first question, and /var/log/openvpn/openvpn-status.log should give you the
information for the second. There are Nagios service checks which may help
you to parse this file into simpler statistics if you need it (although sed and
wc should be able to do the job).
I’m not entirely certain if you’re asking for assistance with something else
here.
Well, Grafana alone will not help you to setup the Open VPN monitoring. You will need Prometheus OpenVPN Exporter as well.
You can check the following links as there are a few community-based OpenVPN Exporters e.g. this one and this too.
Also, found this very nice guide on how to setup all of this (using the 1st link);
Additionally, there is a pre-defined Dashboard available which you can also use and tweak it as per your requirements once you setup the Datasource in Grafana.