This is an automated email from the ASF dual-hosted git repository.

kgyrtkirk pushed a commit to branch 33.0.0
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/33.0.0 by this push:
     new 6e630c000c0 Docs: Update segment metadata cache metrics (#17896)
6e630c000c0 is described below

commit 6e630c000c017b50d6c9162274abe4656e02041f
Author: Kashif Faraz <[email protected]>
AuthorDate: Thu Apr 10 13:34:27 2025 +0530

    Docs: Update segment metadata cache metrics (#17896)
    
    (cherry picked from commit 94b147285ede1339da13081850f4ce9fdd5dcfec)
---
 docs/operations/metrics.md                                     | 10 +++++++---
 .../java/org/apache/druid/metadata/segment/cache/Metric.java   |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/docs/operations/metrics.md b/docs/operations/metrics.md
index 08e90d5baf5..af59687e10d 100644
--- a/docs/operations/metrics.md
+++ b/docs/operations/metrics.md
@@ -333,15 +333,19 @@ The following metrics are emitted only when [segment 
metadata caching](../config
 |Metric|Description|Dimensions|
 |------|-----------|----------|
 |`segment/used/count`|Number of used segments currently present in the 
metadata store.|`dataSource`|
-|`segment/unused/count`|Number of unused segments currently present in the 
metadata store.|`dataSource`|
 |`segment/pending/count`|Number of pending segments currently present in the 
metadata store.|`dataSource`|
-|`segment/metadataCache/transactions`|Number of read or write transactions 
performed on the cache for a single datasource.|`dataSource`|
+|`segment/metadataCache/interval/count`|Total number of intervals present in 
the cache for a single datasource.|`dataSource`|
+|`segment/metadataCache/used/count`|Total number of used segments present in 
the cache for a single datasource.|`dataSource`|
+|`segment/metadataCache/pending/count`|Total number of pending segments 
present in the cache for a single datasource.|`dataSource`|
+|`segment/metadataCache/transactions/readOnly`|Number of read-only 
transactions performed on the cache for a single datasource.|`dataSource`|
+|`segment/metadataCache/transactions/readWrite`|Number of read-write 
transactions performed on the cache for a single datasource.|`dataSource`|
+|`segment/metadataCache/transactions/writeOnly`|Number of write-only 
transactions performed on the cache for a single datasource. These transactions 
happen only if the cache is operating in mode `ifSynced` and the first sync on 
the leader Overlord is not complete yet.|`dataSource`|
 |`segment/metadataCache/sync/time`|Number of milliseconds taken for the cache 
to sync with the metadata store.||
+|`segment/metadataCache/dataSource/deleted`|Indicates that a datasource has no 
used or pending segments anymore and has been removed from the 
cache.|`dataSource`|
 |`segment/metadataCache/deleted`|Total number of segments deleted from the 
cache during the latest sync.||
 |`segment/metadataCache/skipped`|Total number of unparseable segment records 
that were skipped in the latest sync.||
 |`segment/metadataCache/used/stale`|Number of used segments in the cache which 
are out-of-date and need to be refreshed.|`dataSource`|
 |`segment/metadataCache/used/updated`|Number of used segments updated in the 
cache during the latest sync.|`dataSource`|
-|`segment/metadataCache/unused/updated`|Number of unused segments updated in 
the cache during the latest sync.|`dataSource`|
 |`segment/metadataCache/pending/deleted`|Number of pending segments deleted 
from the cache during the latest sync.|`dataSource`|
 |`segment/metadataCache/pending/updated`|Number of pending segments updated in 
the cache during the latest sync.|`dataSource`|
 |`segment/metadataCache/pending/skipped`|Number of unparseable pending segment 
records that were skipped in the latest sync.|`dataSource`|
diff --git 
a/server/src/main/java/org/apache/druid/metadata/segment/cache/Metric.java 
b/server/src/main/java/org/apache/druid/metadata/segment/cache/Metric.java
index 24f4fd8efa5..adaec00e991 100644
--- a/server/src/main/java/org/apache/druid/metadata/segment/cache/Metric.java
+++ b/server/src/main/java/org/apache/druid/metadata/segment/cache/Metric.java
@@ -109,7 +109,7 @@ public class Metric
   // CACHE UPDATE METRICS
 
   /**
-   * Total number of segments deleted from the cache in the latest sync.
+   * Total number of datasources removed from the cache if they have no 
segments anymore.
    */
   public static final String DELETED_DATASOURCES = METRIC_NAME_PREFIX + 
"dataSource/deleted";
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to