summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2020-11-12 23:14:46 +0100
committerNasser Grainawi <nasser@codeaurora.org>2020-11-18 15:33:11 -0700
commiteeebe41ee8fd3d22befc0c399c3f8bd119993b04 (patch)
treee73bfc2a6a8771eedddc5f79fbdb3ebbbb169139
parentfd266bf32ba071e7a7a0d25e17ad2524e6e02d89 (diff)
Disk cache metrics require cache.enableDiskStatMetrics
After setting up the metrics-reporter-prometheus, I have missed entries for caches/disk_cached and caches/disk_hit_ratio. Turns out they are disabled by default via cache.enableDiskStatMetrics. The feature flag comes from I41ee2d9a368c312b7b2729d17d6c19bee0d90922 which has been backported to all stable branches. Add to the metrics documentation a reference to enableDiskStatMetrics setting. Change-Id: I3620e0cb68b992f094a1b8d7b0016fc834a8e7e6
-rw-r--r--Documentation/metrics.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/metrics.txt b/Documentation/metrics.txt
index cb3eb2179d..1666b2fd0b 100644
--- a/Documentation/metrics.txt
+++ b/Documentation/metrics.txt
@@ -61,6 +61,11 @@ objects needing finalization.
* `caches/disk_cached`: Disk entries used by persistent cache.
* `caches/disk_hit_ratio`: Disk hit ratio for persistent cache.
+Cache disk metrics are expensive to compute on larger installations and are not
+computed by default. They can be enabled via the
+link:config.gerrit.html#cache.enableDiskStatMetrics[`cache.enableDiskStatMetrics`]
+setting.
+
=== HTTP
==== Jetty