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

Add location to connection stats #148

Open
imclint21 opened this issue May 30, 2024 · 2 comments
Open

Add location to connection stats #148

imclint21 opened this issue May 30, 2024 · 2 comments

Comments

@imclint21
Copy link

Hi,

I create a mikrotik-exporter (https://github.com/hypeproxy/mikrotik-active-connections-exporter) for get connection stats but I just saw that you have this feature, maybe you could add location stats like City, Country and Latitude/Longitude, would be nice to create a heatmap on Grafana by example.

Just and idea!

Regards

@akpw
Copy link
Owner

akpw commented Aug 11, 2024

@imclint21 this is an interesting suggestion. just to be sure, what is your idea on the output format?

Currently, the metric output could look smth like:

mktxp_connection_stats{dhcp_name="PB Eth", src_address="10.60.30.149", dst_addresses="142.250.110.188:5228(tcp), 74.125.133.188:5228(tcp), 64.233.184.188:5228(tcp), 64.233.167.188:5228(tcp), 172.217.17.10:443(tcp), 74.125.206.188:5228(tcp), 66.102.1.188:5228(tcp), 74.125.71.188:5228(tcp)", routerboard_address="10.30.25.1", routerboard_name="MKT-RT"} 28.0

simply adding additional location information for each connection inside a single label would be impractical, so what is your idea on making it more digestible / efficient?

@imclint21
Copy link
Author

I'm not sure about the ideal output, but the goal is to create a heatmap on grafana!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants