No description
  • Python 85.4%
  • Dockerfile 14.6%
Find a file
MelianMiko b21a834114
All checks were successful
Build and install Docker container / release (push) Successful in 27s
first commit
2026-07-27 21:56:39 +07:00
.forgejo/workflows first commit 2026-07-27 21:56:39 +07:00
.gitignore first commit 2026-07-27 21:56:39 +07:00
amnezia-archive-keyring.gpg first commit 2026-07-27 21:56:39 +07:00
compose.yaml first commit 2026-07-27 21:56:39 +07:00
Dockerfile first commit 2026-07-27 21:56:39 +07:00
main.py first commit 2026-07-27 21:56:39 +07:00
README.md first commit 2026-07-27 21:56:39 +07:00

Wiregaurd/Amneziawg exporter for Prometheus

Set up: use following Docker-compose:

services:
  exporter:
    image: code.mmk.pw/owner/wg-exporter:latest
    network_mode: host
    cap_add:
      - NET_ADMIN
    volumes:
      - ./configs:/configs:ro # Optional, folder that contains your wireguard conf-files,
                              # used to obtain peer names from comment above [Peer] section, see
                              # example bellow
  	environment:
  	  - HTTP_PORT=41337		  # Optional, defaults to 41337
  	  - HTTP_HOST=127.0.0.1   # Optional, defaults to 127.0.0.1

Named WireGaurd config example:

[Interface]
PrivateKey = XXXX
Address = 10.19.0.1

# Test peer
[Peer]
PublicKey = YYYY
AllowedIPs = 10.19.0.2/32

With this config, Test peer will be used instead of YYYY in metrics.