diff options
author | yngveaasheim <yngve@yahooinc.com> | 2023-03-06 09:58:37 +0100 |
---|---|---|
committer | yngveaasheim <yngve@yahooinc.com> | 2023-03-06 09:59:42 +0100 |
commit | 0a3f8f7671e04c5f18a98ea863f2c5be4e40124e (patch) | |
tree | 820b6e55cba2c73a786e817ead4772d91d8264e9 | |
parent | 2cfa570711225eded510122ac9e4d5be8d8a3a08 (diff) |
Separate enum for routing layer metrics.
-rw-r--r-- | container-core/src/main/java/com/yahoo/metrics/RoutingLayerMetrics.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/metrics/RoutingLayerMetrics.java b/container-core/src/main/java/com/yahoo/metrics/RoutingLayerMetrics.java new file mode 100644 index 00000000000..773afae00ba --- /dev/null +++ b/container-core/src/main/java/com/yahoo/metrics/RoutingLayerMetrics.java @@ -0,0 +1,34 @@ +package com.yahoo.metrics; + +/** + * @author yngveaasheim + */ + +// Internal hosted Vespa only TODO: Move to a better place +public enum RoutingLayerMetrics implements VespaMetrics { + + WORKER_CONNECTIONS("worker.connections", Unit.CONNECTION, "Yahoo! Internal: Number of connections for the routing worker having most connections per node"); + + private final String name; + private final Unit unit; + private final String description; + + RoutingLayerMetrics(String name, Unit unit, String description) { + this.name = name; + this.unit = unit; + this.description = description; + } + + public String baseName() { + return name; + } + + public Unit unit() { + return unit; + } + + public String description() { + return description; + } + +} |