Pin to prometheus_client<0.4 to avoid renaming all of our metrics

pull/4002/head
Richard van der Hoff 2018-10-03 17:15:35 +01:00
parent 055fe3589e
commit a59d899668
2 changed files with 5 additions and 1 deletions

1
changelog.d/4002.misc Normal file
View File

@ -0,0 +1 @@
Pin to prometheus_client<0.4 to avoid renaming all of our metrics

View File

@ -58,7 +58,10 @@ REQUIREMENTS = {
"msgpack-python>=0.3.0": ["msgpack"], "msgpack-python>=0.3.0": ["msgpack"],
"phonenumbers>=8.2.0": ["phonenumbers"], "phonenumbers>=8.2.0": ["phonenumbers"],
"six>=1.10": ["six"], "six>=1.10": ["six"],
"prometheus_client>=0.0.18": ["prometheus_client"],
# prometheus_client 0.4.0 changed the format of counter metrics
# (cf https://github.com/matrix-org/synapse/issues/4001)
"prometheus_client>=0.0.18,<0.4.0": ["prometheus_client"],
# we use attr.s(slots), which arrived in 16.0.0 # we use attr.s(slots), which arrived in 16.0.0
"attrs>=16.0.0": ["attr>=16.0.0"], "attrs>=16.0.0": ["attr>=16.0.0"],