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

Created endpoint with statistics of service #57

Merged
merged 8 commits into from
Aug 18, 2023
Merged

Created endpoint with statistics of service #57

merged 8 commits into from
Aug 18, 2023

Conversation

FokiDoki
Copy link
Owner

@FokiDoki FokiDoki commented Aug 18, 2023

GET request to /v1/service/stats returns general information about service
request

curl -X 'GET' \
  'http://localhost:8081/v1/service/stats' \
  -H 'accept: application/json'

Responce

{
  "timestamp": 1692365800425,
  "peers": 60008,
  "totalV4Ips": 65536,
  "freeV4Ips": 65527,
  "transferTx": 300879237901,
  "transferRx": 301434168153
}

Timestamp - Unix milliseconds timestamp of the snapshot

peers - number of peers in the interface

totalV4Ips - number of IPv4 addresses (/32) in the interface

freeV4Ips - number of addresses (/32) that are not in use

transferTx - total transmitted bytes for all peers

transferRx - total received bytes for all peers

@FokiDoki FokiDoki merged commit cea7b19 into master Aug 18, 2023
@FokiDoki FokiDoki deleted the Stats branch August 18, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant