Better readability for metrics with single suffix
@@ -176,16 +176,16 @@ public class VespaMetricSet {
addMetric(metrics, ContainerMetrics.HTTPAPI_CONDITION_NOT_MET.baseName(), List.of("rate"));
addMetric(metrics, ContainerMetrics.HTTPAPI_NOT_FOUND.baseName(), List.of("rate"));
- addMetric(metrics, ContainerMetrics.MEM_HEAP_TOTAL.baseName(), List.of("average"));
- addMetric(metrics, ContainerMetrics.MEM_HEAP_FREE.baseName(), List.of("average"));
+ addMetric(metrics, ContainerMetrics.MEM_HEAP_TOTAL.average());
+ addMetric(metrics, ContainerMetrics.MEM_HEAP_FREE.average());
addMetric(metrics, ContainerMetrics.MEM_HEAP_USED.baseName(), List.of("average", "max"));
- addMetric(metrics, ContainerMetrics.MEM_DIRECT_TOTAL.baseName(), List.of("average"));
- addMetric(metrics, ContainerMetrics.MEM_DIRECT_FREE.baseName(), List.of("average"));
+ addMetric(metrics, ContainerMetrics.MEM_DIRECT_TOTAL.average());
+ addMetric(metrics, ContainerMetrics.MEM_DIRECT_FREE.average());
addMetric(metrics, ContainerMetrics.MEM_DIRECT_USED.baseName(), List.of("average", "max"));
- addMetric(metrics, ContainerMetrics.MEM_DIRECT_COUNT.baseName(), List.of("max"));
- addMetric(metrics, ContainerMetrics.MEM_NATIVE_TOTAL.baseName(), List.of("average"));
- addMetric(metrics, ContainerMetrics.MEM_NATIVE_FREE.baseName(), List.of("average"));
- addMetric(metrics, ContainerMetrics.MEM_NATIVE_USED.baseName(), List.of("average", "max"));
+ addMetric(metrics, ContainerMetrics.MEM_DIRECT_COUNT.max());
+ addMetric(metrics, ContainerMetrics.MEM_NATIVE_TOTAL.average());
+ addMetric(metrics, ContainerMetrics.MEM_NATIVE_FREE.average());
+ addMetric(metrics, ContainerMetrics.MEM_NATIVE_USED.average());
metrics.add(new Metric("jdisc.memory_mappings.max"));
metrics.add(new Metric("jdisc.open_file_descriptors.max"));
