-
Notifications
You must be signed in to change notification settings - Fork 889
feat(coderd): add coder_app
usage stats
#9001
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(coderd): add coder_app
usage stats
#9001
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
9bf63a4
to
befb4dc
Compare
I've refactored the stats collection to perform rollups on short-lived requests and added full test coverage for the Default rollup window is 1 minute, we can extend it if we want to reduce rows further, but I don't think it'll be necessary. What's left is:
For now, the data looks like this: SELECT *, session_ended_at - session_started_at AS session_length FROM workspace_app_stats ORDER BY session_started_at;
|
e903d16
to
1705138
Compare
b17b944
to
6ec178b
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.
Note before merging: double-check for a duplicate migration!
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.
I don't think there's any newer migration on main? But yea, I will merge in main and fix if needed before merge. 👍🏻
a23297b
to
c9272c5
Compare
coder_app
usagecoder_app
usage stats
Updates #8658