-
Notifications
You must be signed in to change notification settings - Fork 894
feat: expose workspace statuses (with details) as a prometheus metric #12762
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
15 commits
Select commit
Hold shift + click to select a range
843d650
Add metric to show operators what statuses workspaces are in, with re…
dannykopping 2ed42a3
Clear gauges if no db entries are found
dannykopping c31b498
Change default refresh rates of Agent and Workspaces calls which seem…
dannykopping 2f5a948
Added tests for workspace detail metrics
dannykopping fc61d37
Refactor common funcs
dannykopping 6f95371
Remove unnecessary metric from test
dannykopping f42af07
Use NoLock variety to fix hung tests
dannykopping 2cb8ccc
Fix duration on windows builds
dannykopping b118044
Changing join type so that latest_build_status is non-nullable
dannykopping acd104c
Remove SuperShort duration as extraneous
dannykopping a333f98
Remove workspace cardinality; rename for clarity
dannykopping c920508
Fixing tests
dannykopping cf14b9d
Merge branch 'main' of github.com:/coder/coder into dk/workspace-metric
dannykopping a94914f
Merge branch 'main' of github.com:/coder/coder into dk/workspace-metric
dannykopping 8e6cde9
Renaming for clarity
dannykopping 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
Remove unnecessary metric from test
Use stronger rand Signed-off-by: Danny Kopping <danny@coder.com>
- Loading branch information
commit 6f9537100d42df720fb37974638855ccfac05f13
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
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.
Side-effect of clearing the gauge when no db rows are loaded.
This wasn't strictly necessary for the test since other manually-registered metrics are included to validate this test.