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

Commit 8d75312

Browse files
committed
Fix prom get counter incrementing in external sharded cache
1 parent cbb656c commit 8d75312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/replication/tcp/external_sharded_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async def mget(self, cache_name: str, keys: Iterable[str]) -> Dict[str, Any]:
191191

192192
logger.debug("Got cache result %s %s: %r", cache_name, keys, combined_results)
193193

194-
get_counter.labels(cache_name, result is not None).inc()
194+
get_counter.labels(cache_name).inc(len(combined_results))
195195

196196
return combined_results
197197

0 commit comments

Comments
 (0)