Skip to content

Commit 5208cff

Browse files
authored
Merge pull request #36322 from vespa-engine/olaa/add-snapshot-busy-metric
Add snapshot busy metric
2 parents 7768e10 + f1737e7 commit 5208cff

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

metrics/src/main/java/ai/vespa/metrics/ConfigServerMetrics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public enum ConfigServerMetrics implements VespaMetrics {
7171
CLUSTER_LOAD_PEAK_MEMORY("cluster.load.peak.memory", Unit.FRACTION, "The peak memory load in the period considered of a certain cluster"),
7272
CLUSTER_LOAD_PEAK_DISK("cluster.load.peak.disk", Unit.FRACTION, "The peak disk load in the period considered of a certain cluster"),
7373
CLUSTER_BACKUP_AGE_FRACTION("cluster.backup.age", Unit.FRACTION, "Age of the most recent cluster backup as a fraction of the backup interval"),
74+
CLUSTER_SNAPSHOT_BUSY_SECONDS("cluster.snapshot.busySeconds", Unit.SECOND, "The maximum time a snapshot has been busy (creating or restoring) for a cluster"),
7475

7576
ZONE_WORKING("zone.working", Unit.BINARY, "The value 1 if zone is considered healthy, 0 if not. This is decided by considering the number of non-active nodes vs the number of active nodes in a zone"),
7677
CACHE_NODE_OBJECT_HIT_RATE("cache.nodeObject.hitRate", Unit.FRACTION, "The fraction of cache hits vs cache lookups for the node object cache"),

metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ private static Set<Metric> getConfigServerMetrics() {
7171
addMetric(metrics, ConfigServerMetrics.CLUSTER_LOAD_PEAK_MEMORY.max());
7272
addMetric(metrics, ConfigServerMetrics.CLUSTER_LOAD_PEAK_DISK.max());
7373
addMetric(metrics, ConfigServerMetrics.CLUSTER_BACKUP_AGE_FRACTION.last());
74+
addMetric(metrics, ConfigServerMetrics.CLUSTER_SNAPSHOT_BUSY_SECONDS.max());
7475
addMetric(metrics, ConfigServerMetrics.NODES_EMPTY_EXCLUSIVE.max());
7576
addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_DEPROVISIONED.count());
7677
addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_DIRTY.count());

0 commit comments

Comments
 (0)