-
Notifications
You must be signed in to change notification settings - Fork 894
chore: add prometheus monitoring of workspace traffic generation #7583
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f62cf16
add prometheus metrics endpoint to workspacetraffic command
johnstcn 00b9eca
use self-managed prometheus
johnstcn 9a9778c
plumb in prom properly
johnstcn f00b8d7
fix label on second pod monitor
johnstcn 69bc5ad
do not clobber existing prometheus
johnstcn 57d338d
remote_write all metrics
johnstcn a1d14df
add convenience script to create traffic inside cluster
johnstcn fb96c4d
fixup! add convenience script to create traffic inside cluster
johnstcn 59ef445
make fmt, make gen
johnstcn 6734521
Update scaletest/terraform/prometheus.tf
johnstcn 4ab2314
Merge remote-tracking branch 'origin/main' into cj/workspacetraffic-p…
johnstcn d54af33
address PR comments
johnstcn 8c48d2b
move test to workspacetraffic package
johnstcn cf00b5a
Merge remote-tracking branch 'origin/main' into cj/workspacetraffic-p…
johnstcn e6917e6
update golden files
johnstcn ea71c4f
separate prom address var
johnstcn 399e506
break out errors in to read/write
johnstcn ec96a00
ignore certain errors such as websocket closing or context cancellation
johnstcn a4ecd0c
test metrics more closely
johnstcn fe0ecfc
fixup! test metrics more closely
johnstcn 239ba96
add wait for prometheus metrics
johnstcn 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
ignore certain errors such as websocket closing or context cancellation
- Loading branch information
commit ec96a0016b9af15ff8a03092cf63b78fea7cfca7
There are no files selected for viewing
This file contains hidden or 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
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.
I'm curious if we need another metric (bytes?) to calculate the bandwidth. As far as I see, there are only
WriteLatencySeconds
and totalBytesWritten
. I'm curious if we need a metric to calculate "bytes per write in time"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.
Given that bytes per tick and ticks per second are inputs to this, I think we should probably be OK. But good food for thought!
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 calc throughput by the
(count at time X) - (count at time Y)
. We should not be doing that math in coderd imoThere 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.
Good catch, will address in a follow-up
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.
Prometheus itself will happily compute the time derivative of any metric, so a counter of bytes written is all we need.