diff options
author | yngveaasheim <yngve@yahooinc.com> | 2023-03-20 07:58:31 +0100 |
---|---|---|
committer | yngveaasheim <yngve@yahooinc.com> | 2023-03-20 16:10:31 +0100 |
commit | 4eae1d61c520ea2910dc58ee710009fc686f77c7 (patch) | |
tree | f99dfb3b207dbda161c92184d395c4d5816cc8dc /container-core/src/main/java/com | |
parent | 2e69baa32861c6a20ca46658a95adf9ccf680dc5 (diff) |
Use unit file instead of area for memory mappings.
Diffstat (limited to 'container-core/src/main/java/com')
-rw-r--r-- | container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java | 2 | ||||
-rw-r--r-- | container-core/src/main/java/com/yahoo/metrics/Unit.java | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java b/container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java index c39054c878c..b36abbdf211 100644 --- a/container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java +++ b/container-core/src/main/java/com/yahoo/metrics/SearchNodeMetrics.java @@ -146,7 +146,7 @@ public enum SearchNodeMetrics implements VespaMetrics { CONTENT_PROTON_RESOURCE_USAGE_MEMORY_USAGE_TOTAL("content.proton.resource_usage.memory_usage.total", Unit.FRACTION, "The total relative amount of memory used by this content node (value in the range [0, 1])"), CONTENT_PROTON_RESOURCE_USAGE_MEMORY_USAGE_TOTAL_UTILIZATION("content.proton.resource_usage.memory_usage.total_utilization", Unit.FRACTION, "The relative amount of memory used compared to the content node memory resource limit"), CONTENT_PROTON_RESOURCE_USAGE_MEMORY_USAGE_TRANSIENT("content.proton.resource_usage.memory_usage.transient", Unit.FRACTION, "The relative amount of transient memory used by this content node (value in the range [0, 1])"), - CONTENT_PROTON_RESOURCE_USAGE_MEMORY_MAPPINGS("content.proton.resource_usage.memory_mappings", Unit.AREA, "The number of mapped memory areas"), + CONTENT_PROTON_RESOURCE_USAGE_MEMORY_MAPPINGS("content.proton.resource_usage.memory_mappings", Unit.FILE, "The number of memory mapped files"), CONTENT_PROTON_RESOURCE_USAGE_OPEN_FILE_DESCRIPTORS("content.proton.resource_usage.open_file_descriptors", Unit.FILE, "The number of open files"), CONTENT_PROTON_RESOURCE_USAGE_FEEDING_BLOCKED("content.proton.resource_usage.feeding_blocked", Unit.BINARY, "Whether feeding is blocked due to resource limits being reached (value is either 0 or 1)"), CONTENT_PROTON_RESOURCE_USAGE_MALLOC_ARENA("content.proton.resource_usage.malloc_arena", Unit.BYTE, "Size of malloc arena"), diff --git a/container-core/src/main/java/com/yahoo/metrics/Unit.java b/container-core/src/main/java/com/yahoo/metrics/Unit.java index acc2f3f6875..1285de3b492 100644 --- a/container-core/src/main/java/com/yahoo/metrics/Unit.java +++ b/container-core/src/main/java/com/yahoo/metrics/Unit.java @@ -5,7 +5,6 @@ package com.yahoo.metrics; */ public enum Unit { - AREA(BaseUnit.AREA), BINARY(BaseUnit.BINARY, "Zero or one. Zero typically indicate \"false\" while one indicate \"true\""), BUCKET(BaseUnit.BUCKET), BYTE(BaseUnit.BYTE), |