-
Notifications
You must be signed in to change notification settings - Fork 789
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
feat(server): add getTunneltime to manager metrics #1581
feat(server): add getTunneltime to manager metrics #1581
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. This is exactly the kind of discussion I was looking for!
40975be
to
cf4383b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just some minor tweaks. And we need to update the YAML file.
@@ -418,6 +418,35 @@ paths: | |||
examples: | |||
'0': | |||
value: '{"bytesTransferredByUserId":{"1":1008040941,"2":5958113497,"3":752221577}}' | |||
/metrics/tunnel-time-location |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be /metrics/tunnel-time
? I thought you mention there was another one per access key, but I don't see it. How are we going to report by key?
Did Sander have an opinion on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will know better about the API once we start using it for real. So perhaps we should pause this and focus on the manager side to better understand the usage.
For instance, we need tunnel time per access key too. Will the manager be forced to issue 3 queries?
Perhaps it will be best to issue one query, maybe under /metrics/usage
, that returns all the usage metrics we need. That will simplify the Manager. It will also let us deprecate the bad transfer
endpoint. In the future we can just add more to the usage endpoint, instead of keeping adding new endpoints per metric.
Closing in favor of the unified metrics endpoint |
successful result from digital ocean droplet:
TODOs: