diff options
author | Krombel <krombel@krombel.de> | 2018-04-05 17:26:21 +0200 |
---|---|---|
committer | Krombel <krombel@krombel.de> | 2018-04-05 23:34:01 +0200 |
commit | c7ede92d0b0e3d9a1c9a6cea8ecccbb87d1fb0d9 (patch) | |
tree | a69338278f3c42437d165459a1349363ed67d0d9 /contrib/prometheus/synapse-v2.rules | |
parent | Merge pull request #3045 from matrix-org/dbkr/group_joinable (diff) | |
download | synapse-c7ede92d0b0e3d9a1c9a6cea8ecccbb87d1fb0d9.tar.xz |
make prometheus config compliant to v0.28
Diffstat (limited to '')
-rw-r--r-- | contrib/prometheus/synapse-v2.rules | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/prometheus/synapse-v2.rules b/contrib/prometheus/synapse-v2.rules index 07e37a885e..6ccca2daaf 100644 --- a/contrib/prometheus/synapse-v2.rules +++ b/contrib/prometheus/synapse-v2.rules @@ -5,19 +5,19 @@ groups: expr: "sum(synapse_federation_transaction_queue_pendingEdus or absent(synapse_federation_transaction_queue_pendingEdus)*0)" - record: "synapse_federation_transaction_queue_pendingPdus:total" expr: "sum(synapse_federation_transaction_queue_pendingPdus or absent(synapse_federation_transaction_queue_pendingPdus)*0)" - - record: 'synapse_http_server_requests:method' + - record: 'synapse_http_server_request_count:method' labels: servlet: "" - expr: "sum(synapse_http_server_requests) by (method)" - - record: 'synapse_http_server_requests:servlet' + expr: "sum(synapse_http_server_request_count) by (method)" + - record: 'synapse_http_server_request_count:servlet' labels: method: "" - expr: 'sum(synapse_http_server_requests) by (servlet)' + expr: 'sum(synapse_http_server_request_count) by (servlet)' - - record: 'synapse_http_server_requests:total' + - record: 'synapse_http_server_request_count:total' labels: servlet: "" - expr: 'sum(synapse_http_server_requests:by_method) by (servlet)' + expr: 'sum(synapse_http_server_request_count:by_method) by (servlet)' - record: 'synapse_cache:hit_ratio_5m' expr: 'rate(synapse_util_caches_cache:hits[5m]) / rate(synapse_util_caches_cache:total[5m])' |