[GH-ISSUE #970] How to monitor vpn? #297

Closed
opened 2026-10-13 20:18:14 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @ostiwe on GitHub (Aug 12, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/970

Hi, i have installed vpn from ios client, and on server have multiply docker containers so, im want to monitor clients and using traffic by prometheus (https://github.com/amnezia-vpn/amneziawg-exporter)

How i can do this?

Originally created by @ostiwe on GitHub (Aug 12, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/970 Hi, i have installed vpn from ios client, and on server have multiply docker containers so, im want to monitor clients and using traffic by prometheus (https://github.com/amnezia-vpn/amneziawg-exporter) How i can do this?
Author
Owner

@tiaga commented on GitHub (Aug 14, 2024):

Hello,

First of all, this questions is more about AmneziaWG exporter itself and should be addressed to the corresponding repository. However, if check README.md you'll see, that it's possible to scrape metrics using the HTTP protocol from the 9351 TCP port. Note that this exporter is more suitable for big installations and returns only "current number of online users" and "daily active users".

<!-- gh-comment-id:2287962226 --> @tiaga commented on GitHub (Aug 14, 2024): Hello, First of all, this questions is more about AmneziaWG exporter itself and should be addressed to the corresponding repository. However, if check [README.md](https://github.com/amnezia-vpn/amneziawg-exporter/blob/main/README.md) you'll see, that it's possible to scrape metrics using the HTTP protocol from the 9351 TCP port. Note that this exporter is more suitable for big installations and returns only "current number of online users" and "daily active users".
Author
Owner

@shipilovds commented on GitHub (Aug 14, 2024):

@ostiwe you can look at the previous version of exporter at this point: github.com/amnezia-vpn/amneziawg-exporter@36e4f9d1ca
It contains more metrics. I think it is what you are looking for.
But if you want to use it with self-hosted version of amnezia server - it would be better if you add exporter to amneziawg image. You can ask anything. I can provide help.

<!-- gh-comment-id:2288363792 --> @shipilovds commented on GitHub (Aug 14, 2024): @ostiwe you can look at the previous version of exporter at this point: https://github.com/amnezia-vpn/amneziawg-exporter/tree/36e4f9d1cad90b572f13274c72f120ae23478e6a It contains more metrics. I think it is what you are looking for. But if you want to use it with self-hosted version of amnezia server - it would be better if you add exporter to amneziawg image. You can ask anything. I can provide help.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#297
No description provided.