-
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
Closed
daniellacosse
wants to merge
21
commits into
master
from
daniellacosse/tunneltime/add_get_tunneltime
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7c0bc30
feat(server): add getTunneltime to manager metrics
daniellacosse aceb4c6
how does this look?
daniellacosse fedd737
todo: need to wire up to an endpoint and test
daniellacosse d43eafa
define /metrics/tunnel endpoint
daniellacosse 4573ebf
finish endpoint, time to test
daniellacosse 82e2dcd
rename to unix, validation fixes
daniellacosse 40c8929
final step: actually connect to and show metrics
daniellacosse cf4383b
change endpoint to location-only
daniellacosse 86eb886
better metrics parsing
daniellacosse 2052a03
log result
daniellacosse 6d52918
add test and remove console log
daniellacosse 1e90558
ah yes
daniellacosse 18dfb3f
flatten return structure
daniellacosse b7fdc19
feedback
daniellacosse cebef73
feedback, pending other info
daniellacosse 0fd1008
oops
daniellacosse 9b398a9
seconds objcet
daniellacosse a0fc6bd
time_window
daniellacosse 4512821
asn example, remove rounding
daniellacosse 9b8b4d0
Update manager_metrics.ts
daniellacosse 6a39bec
feedback
daniellacosse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You can see both the metrics at
http://127.0.0.1:9092/metrics
here:I think we should make a separate endpoint for the tunnel time report by key
Also I think Sander approved this back when the endpoint was similar, but I didn't check
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 badtransfer
endpoint. In the future we can just add more to the usage endpoint, instead of keeping adding new endpoints per metric.