-
Notifications
You must be signed in to change notification settings - Fork 881
feat(coderd/database): use template_usage_stats
in GetUserLatencyInsights
query
#12671
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
Conversation
db6c026
to
59c0a23
Compare
b1e5d1a
to
c0b0216
Compare
59c0a23
to
db40db5
Compare
c0b0216
to
1793acb
Compare
codersdk/insights.go
Outdated
@@ -98,7 +98,8 @@ type UserActivity struct { | |||
// ConnectionLatency shows the latency for a connection. | |||
type ConnectionLatency struct { | |||
P50 float64 `json:"p50" example:"31.312"` | |||
P95 float64 `json:"p95" example:"119.832"` |
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.
Is this change intentional?
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.
It was, but I reverted it. (It was based on a discussion in Slack where p90/p99 would be preferable over p95, and since this p95 isn't used anywhere, the change would be harmless, but this is not the right place for it.)
db40db5
to
689d1c9
Compare
1793acb
to
91d960f
Compare
689d1c9
to
6d96a3e
Compare
91d960f
to
83f3b78
Compare
6d96a3e
to
754d6c1
Compare
83f3b78
to
2947a31
Compare
ef0f1bc
to
a6a8055
Compare
2947a31
to
da749ae
Compare
a6a8055
to
23cf1c6
Compare
da749ae
to
6027088
Compare
23cf1c6
to
b11b3b6
Compare
6027088
to
e0f339c
Compare
e0f339c
to
e66ae18
Compare
87f22f1
to
2cf5f94
Compare
e66ae18
to
150df95
Compare
2cf5f94
to
02d0f24
Compare
150df95
to
11efd8b
Compare
02d0f24
to
dfa069b
Compare
11efd8b
to
92a0a25
Compare
dfa069b
to
6fca988
Compare
92a0a25
to
ac22243
Compare
6fca988
to
0cd1f85
Compare
ac22243
to
c5457d4
Compare
GetUserLatencyInsights
to use template_usage_stats
template_usage_stats
in GetUserLatencyInsights
query
0cd1f85
to
549a837
Compare
c5457d4
to
48b0729
Compare
549a837
to
6813b73
Compare
7750bb6
to
438d3a9
Compare
This PR updates the
GetUserLatencyInsights
query to use rolled uptemplate_usage_stats
instead of raw agent and app stats.