Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Prometheus metrics #139

Open
ziXet opened this issue Sep 1, 2022 · 0 comments
Open

Better Prometheus metrics #139

ziXet opened this issue Sep 1, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ziXet
Copy link

ziXet commented Sep 1, 2022

Hi,

Thanks for your awesome work.

I have a suggestion regarding the Prometheus metrics.
I would like to know what's the VPN IP of each client's public ip.

So, I see these two in the /mertrics:
ovpn_client_connection_info
ovpn_client_connection_from

one of them gives me the local VPN IP address and the other one gives me the public IP address of the client.

The issue is that, we allow duplicate-cn which means with one client profile, you can have multiple clients connecting to the VPN server. So, I cannot join these two metrics to find which public IP belongs to which connected VPN IP.

On the other hand, I can retrive the following from the openvpn-status.log

Virtual Address,Common Name,Real Address,Last Ref
10.8.0.5,client,74.198.xxx.xxx:20140,Thu Sep  1 18:37:42 2022
10.8.0.2,client,198.84.xxx.xxx:58994,Thu Sep  1 17:31:50 2022

This clearly shows me the relation beween the public IP address of the client and its assigned VPN IP in the network.

So, I believe some changes in the /metrics can solve this issue.

Let me know if more clarification is needed.

Thanks.

@pashcovich pashcovich added the enhancement New feature or request label Sep 5, 2022
@pashcovich pashcovich added this to the 2.1 milestone Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants