-
Notifications
You must be signed in to change notification settings - Fork 411
Re-introduce: Fix LaterGauge metrics to collect from all servers
#18791
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 all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
285f192
Fix `LaterGauge` metrics to collect from all servers (#18751)
MadLittleMods 4dda2b1
First pass: keep track of hooks per server
MadLittleMods 505263d
Some fix-ups
MadLittleMods 46e4053
Add `server_name` to `register_hook`
MadLittleMods 2e5ac44
Move metric clean-up to catch all servers
MadLittleMods 2f25722
Update changelog number
MadLittleMods 8b98536
Merge branch 'develop' into madlittlemods/re-introduce-18751
MadLittleMods a34122f
Try fix `synapse/_scripts/synapse_port_db.py` script
MadLittleMods b226f63
Cleanup homeservers when we `synapse/_scripts/generate_workers_map.py`
MadLittleMods 75e7463
Fix lints
MadLittleMods 68bb036
Use `instance_id` instead of `server_name` to track metrics
MadLittleMods 87cc52f
Fix `BaseStreamTestCase`
MadLittleMods c7d1a78
Fix lints
MadLittleMods 14aee2f
Fix multiple databases registering metrics
MadLittleMods 5baa576
Merge branch 'develop' into madlittlemods/re-introduce-18751
MadLittleMods d7946f4
Merge branch 'develop' into madlittlemods/re-introduce-18751
MadLittleMods 635dcce
Merge branch 'develop' into madlittlemods/re-introduce-18751
MadLittleMods 59701ed
Create consistent `instance_id` in `MockHomeserver`
MadLittleMods 309a72d
Note when `cleanup` should be called
MadLittleMods 371aa51
`cleanup` when homeserver is garbage collected
MadLittleMods 08755ae
Only yield the metric once when we `collect`
MadLittleMods 31ad15a
Continue to return metrics that aren't broken
MadLittleMods b4f06b2
Add tests to ensure we get all metrics even if one hook throws exception
MadLittleMods 9e07d37
Merge branch 'develop' into madlittlemods/re-introduce-18751
MadLittleMods 1c1d6c2
Don't double yield the same gauge
MadLittleMods 595c174
Fix `generate_workers_map` script erroring out
MadLittleMods 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix `LaterGauge` metrics to collect from all servers. | ||
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
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
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
Oops, something went wrong.
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.
Sounds like a good idea given the new
cleanuppattern and you were the same one that reviewed the original PR.