-
Notifications
You must be signed in to change notification settings - Fork 522
Refactor Counter metrics to be homeserver-scoped
#18656
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
MadLittleMods
merged 52 commits into
develop
from
madlittlemods/18592-metric-lint-labels
Jul 25, 2025
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
6896221
Start of lint for checking whether Prometheus metrics have the `serve…
MadLittleMods ada39e3
Add more comments
MadLittleMods 0c45aab
Add specific error code
MadLittleMods 4b3f042
Merge branch 'develop' into madlittlemods/18592-metric-lint-labels
MadLittleMods 6e74eca
Revert temp changes to `synapse/util/ratelimitutils.py`
MadLittleMods 7651a44
Indicate future plan
MadLittleMods 944abdd
Adjust errors
MadLittleMods 143fa3f
Explain when it's okay to ignore lint
MadLittleMods f66758f
Use `SERVER_NAME_LABEL`
MadLittleMods 3705aec
Support `NameExpr` `SERVER_NAME_LABEL` in lint
MadLittleMods 2ba8a31
Fill in `synapse/notifier.py`
MadLittleMods a28be1a
Fill in `synapse/appservice/api.py`
MadLittleMods 48782ac
Fill in `synapse/federation/federation_client.py`
MadLittleMods cdbeb4f
Fill in `synapse/federation/federation_server.py`
MadLittleMods 5cd7f3e
Fill in `synapse/federation/sender/__init__.py`
MadLittleMods 6847cc3
Fill in `synapse/federation/sender/per_destination_queue.py`
MadLittleMods 70547f3
Fill in `synapse/handlers/appservice.py`
MadLittleMods ecbcdea
Fill in `synapse/handlers/auth.py`
MadLittleMods 6e014d3
Fill in `synapse/handlers/federation_event.py`
MadLittleMods 1fadfed
Fill in `synapse/handlers/presence.py`
MadLittleMods a6a6863
Fill in `synapse/handlers/register.py`
MadLittleMods e81be25
Fill in `synapse/handlers/sync.py`
MadLittleMods d42e742
Fill in `synapse/http/client.py`
MadLittleMods f197c92
Fill in `synapse/http/matrixfederationclient.py`
MadLittleMods c28d4bc
Fill in `synapse/http/request_metrics.py`
MadLittleMods fb5e1f2
Fix `synapse/federation/sender/per_destination_queue.py`
MadLittleMods 49f2098
Fix mypy complaining about `request_metrics` `has-type` lints (part o…
MadLittleMods 347e66d
Fill in `synapse/metrics/__init__.py`
MadLittleMods 88bf526
Fill in `synapse/push/bulk_push_rule_evaluator.py`
MadLittleMods 3cb1d28
Restore and standardize comment for unused metrics
MadLittleMods c2cb024
Fill in `synapse/push/httppusher.py`
MadLittleMods e469abe
Fill in `synapse/push/mailer.py`
MadLittleMods f49c793
Fill in `synapse/replication/http/_base.py`
MadLittleMods 73f05ec
Fill in `synapse/replication/tcp/external_cache.py`
MadLittleMods 7523a5a
Fill in `synapse/replication/tcp/handler.py`
MadLittleMods 3fd2cf4
Fill in `synapse/replication/tcp/protocol.py`
MadLittleMods 513249b
Fill in `synapse/replication/tcp/resource.py`
MadLittleMods e0ffa36
Fill in `synapse/state/__init__.py`
MadLittleMods bc17483
Fill in `synapse/storage/database.py`
MadLittleMods 36a7a89
Fill in `synapse/storage/controllers/persist_events.py`
MadLittleMods 24f3e0a
Fill in `synapse/storage/databases/main/event_federation.py`
MadLittleMods 05ef5e2
Fix `server_name` atribute problems with database classes (`EventFede…
MadLittleMods 05ecf5c
Fill in `synapse/storage/databases/main/events.py`
MadLittleMods 732f605
Fill in `synapse/util/ratelimitutils.py`
MadLittleMods 5fb3acb
Fill in `synapse/metrics/background_process_metrics.py`
MadLittleMods b396b7c
Fill in `synapse/metrics/background_process_metrics.py` (`run_as_back…
MadLittleMods 94062a0
Merge branch 'develop' into madlittlemods/18592-metric-lint-labels
MadLittleMods 268ba92
Merge branch 'develop' into madlittlemods/18592-metric-lint-labels
MadLittleMods ecb479e
Add changelog
MadLittleMods 1b03330
Fix `make_request(...)` in tests
MadLittleMods 6545c37
Merge branch 'develop' into madlittlemods/18592-metric-lint-labels
MadLittleMods 822935c
Remove debug log
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 @@ | ||
| Refactor `Counter` metrics to be homeserver-scoped. |
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.
New linting to prevent new
Countermetrics from being introduced without theSERVER_NAME_LABEL