Wireguard + WireRest (JVM)

Dashboard for monitoring Wireguard and WireRest API

Wireguard + WireRest (JVM) screenshot 1
Wireguard + WireRest (JVM) screenshot 2
Wireguard + WireRest (JVM) screenshot 3
Wireguard + WireRest (JVM) screenshot 4
Wireguard + WireRest (JVM) screenshot 5
Wireguard + WireRest (JVM) screenshot 6

This is a dashboard that will allow you to view:

  • Number of peers
  • How many peers are created in a period of time
  • How many peers are removed per time interval
  • How many free / total IP addresses (v4) in the interface that wireguard uses
  • How much traffic wireguard clients spend
  • WireRest API statistics

How to install:

  1. Install WireRest on your server (the same one running Wireguard) GUIDE

  2. Connect Prometheus to your WireRest

Example

yaml
  - job_name: 'wirerest-demo'
    scrape_interval: 5s
    metrics_path: '/actuator/prometheus'
    authorization:
        credentials_file: '/PATH/TO/FILE/WITH/ACCESS_TOKEN'
    static_configs:
      - targets: ['WIREREST_URL:8081']


Do not forget create file with access token or disable it. The file must be accessible by the user prometheus. Default token is “admin” About token
You can check the availability of WireRest as follows: curl http://127.0.0.1:8081/actuator/prometheus?token=<YOUR_TOKEN>

  1. Install dashboard

Done!

if you find bugs or have a suggestion for improvement, please write about it in Github issue

Revisions
RevisionDescriptionCreated

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies