Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit e5d1895

Browse files
author
Sean Quah
committed
Merge tag 'v1.71.0rc2' into develop
Synapse 1.71.0rc2 (2022-11-04) ============================== Please note that, as announced in the release notes for Synapse 1.69.0, legacy Prometheus metric names are now disabled by default. They will be removed altogether in Synapse 1.73.0. If not already done, server administrators should update their dashboards and alerting rules to avoid using the deprecated metric names. See the [upgrade notes](https://matrix-org.github.io/synapse/v1.71/upgrade.html#upgrading-to-v1710) for more details. Improved Documentation ---------------------- - Document the changes to monthly active user metrics due to deprecation of legacy Prometheus metric names. ([\#14358](#14358), [\#14360](#14360)) Deprecations and Removals ------------------------- - Disable legacy Prometheus metric names by default. They can still be re-enabled for now, but they will be removed altogether in Synapse 1.73.0. ([\#14353](#14353)) Internal Changes ---------------- - Run unit tests against Python 3.11. ([\#13812](#13812))
2 parents 86c5a71 + af592d7 commit e5d1895

File tree

8 files changed

+59
-7
lines changed

8 files changed

+59
-7
lines changed

CHANGES.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
Synapse 1.71.0rc2 (2022-11-04)
2+
==============================
3+
4+
Please note that, as announced in the release notes for Synapse 1.69.0, legacy Prometheus metric names are now disabled by default.
5+
They will be removed altogether in Synapse 1.73.0.
6+
If not already done, server administrators should update their dashboards and alerting rules to avoid using the deprecated metric names.
7+
See the [upgrade notes](https://matrix-org.github.io/synapse/v1.71/upgrade.html#upgrading-to-v1710) for more details.
8+
9+
10+
Improved Documentation
11+
----------------------
12+
13+
- Document the changes to monthly active user metrics due to deprecation of legacy Prometheus metric names. ([\#14358](https://github.com/matrix-org/synapse/issues/14358), [\#14360](https://github.com/matrix-org/synapse/issues/14360))
14+
15+
16+
Deprecations and Removals
17+
-------------------------
18+
19+
- Disable legacy Prometheus metric names by default. They can still be re-enabled for now, but they will be removed altogether in Synapse 1.73.0. ([\#14353](https://github.com/matrix-org/synapse/issues/14353))
20+
21+
22+
Internal Changes
23+
----------------
24+
25+
- Run unit tests against Python 3.11. ([\#13812](https://github.com/matrix-org/synapse/issues/13812))
26+
27+
128
Synapse 1.71.0rc1 (2022-11-01)
229
==============================
330

debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
matrix-synapse-py3 (1.71.0~rc2) stable; urgency=medium
2+
3+
* New Synapse release 1.71.0rc2.
4+
5+
-- Synapse Packaging team <[email protected]> Fri, 04 Nov 2022 12:00:33 +0000
6+
17
matrix-synapse-py3 (1.71.0~rc1) stable; urgency=medium
28

39
* New Synapse release 1.71.0rc1.

docs/metrics-howto.md

+3
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ altogether in Synapse v1.73.0.**
209209
| synapse_http_httppusher_http_pushes_failed_total | synapse_http_httppusher_http_pushes_failed |
210210
| synapse_http_httppusher_badge_updates_processed_total | synapse_http_httppusher_badge_updates_processed |
211211
| synapse_http_httppusher_badge_updates_failed_total | synapse_http_httppusher_badge_updates_failed |
212+
| synapse_admin_mau_current | synapse_admin_mau:current |
213+
| synapse_admin_mau_max | synapse_admin_mau:max |
214+
| synapse_admin_mau_registered_reserved_users | synapse_admin_mau:registered_reserved_users |
212215

213216
Removal of deprecated metrics & time based counters becoming histograms in 0.31.0
214217
---------------------------------------------------------------------------------

docs/upgrade.md

+16
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,22 @@ local users and some remote users is why the spec was changed/clarified and this
116116
caveat is no longer supported.
117117
118118
119+
## Legacy Prometheus metric names are now disabled by default
120+
121+
Synapse v1.71.0 disables legacy Prometheus metric names by default.
122+
For administrators that still rely on them and have not yet had chance to update their
123+
uses of the metrics, it's still possible to specify `enable_legacy_metrics: true` in
124+
the configuration to re-enable them temporarily.
125+
126+
Synapse v1.73.0 will **remove legacy metric names altogether** and at that point,
127+
it will no longer be possible to re-enable them.
128+
129+
If you do not use metrics or you have already updated your Grafana dashboard(s),
130+
Prometheus console(s) and alerting rule(s), there is no action needed.
131+
132+
See [v1.69.0: Deprecation of legacy Prometheus metric names](#deprecation-of-legacy-prometheus-metric-names).
133+
134+
119135
# Upgrading to v1.69.0
120136

121137
## Changes to the receipts replication streams

docs/usage/administration/monthly_active_users.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ When a request is blocked, the response will have the `errcode` `M_RESOURCE_LIMI
7373

7474
Synapse records several different prometheus metrics for MAU.
7575

76-
`synapse_admin_mau:current` records the current MAU figure for native (non-application-service) users.
76+
`synapse_admin_mau_current` records the current MAU figure for native (non-application-service) users.
7777

78-
`synapse_admin_mau:max` records the maximum MAU as dictated by the `max_mau_value` config value.
78+
`synapse_admin_mau_max` records the maximum MAU as dictated by the `max_mau_value` config value.
7979

8080
`synapse_admin_mau_current_mau_by_service` records the current MAU including application service users. The label `app_service` can be used
8181
to filter by a specific service ID. This *also* includes non-application-service users under `app_service=native` .
8282

83-
`synapse_admin_mau:registered_reserved_users` records the number of users specified in `mau_limits_reserved_threepids` which have
83+
`synapse_admin_mau_registered_reserved_users` records the number of users specified in `mau_limits_reserved_threepids` which have
8484
registered accounts on the homeserver.

docs/usage/configuration/config_documentation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2441,8 +2441,8 @@ enable_metrics: true
24412441

24422442
Set to `true` to publish both legacy and non-legacy Prometheus metric names,
24432443
or to `false` to only publish non-legacy Prometheus metric names.
2444-
Defaults to `true`. Has no effect if `enable_metrics` is `false`.
2445-
**In Synapse v1.71.0, this will default to `false` before being removed in Synapse v1.73.0.**
2444+
Defaults to `false`. Has no effect if `enable_metrics` is `false`.
2445+
**In Synapse v1.67.0 up to and including Synapse v1.70.1, this defaulted to `true`.**
24462446

24472447
Legacy metric names include:
24482448
- metrics containing colons in the name, such as `synapse_util_caches_response_cache:hits`, because colons are supposed to be reserved for user-defined recording rules;

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ manifest-path = "rust/Cargo.toml"
5757

5858
[tool.poetry]
5959
name = "matrix-synapse"
60-
version = "1.71.0rc1"
60+
version = "1.71.0rc2"
6161
description = "Homeserver for the Matrix decentralised comms protocol"
6262
authors = ["Matrix.org Team and Contributors <[email protected]>"]
6363
license = "Apache-2.0"

synapse/config/metrics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class MetricsConfig(Config):
4343
def read_config(self, config: JsonDict, **kwargs: Any) -> None:
4444
self.enable_metrics = config.get("enable_metrics", False)
4545

46-
self.enable_legacy_metrics = config.get("enable_legacy_metrics", True)
46+
self.enable_legacy_metrics = config.get("enable_legacy_metrics", False)
4747

4848
self.report_stats = config.get("report_stats", None)
4949
self.report_stats_endpoint = config.get(

0 commit comments

Comments
 (0)