diff options
Diffstat (limited to 'container-core/src/main/java/com/yahoo/metrics/SentinelMetrics.java')
-rw-r--r-- | container-core/src/main/java/com/yahoo/metrics/SentinelMetrics.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/metrics/SentinelMetrics.java b/container-core/src/main/java/com/yahoo/metrics/SentinelMetrics.java new file mode 100644 index 00000000000..7711b7e75f4 --- /dev/null +++ b/container-core/src/main/java/com/yahoo/metrics/SentinelMetrics.java @@ -0,0 +1,36 @@ +package com.yahoo.metrics; + +/** + * @author yngve + */ +public enum SentinelMetrics implements VespaMetrics { + + SENTINEL_RESTARTS("sentinel.restarts", Unit.RESTART, "Number of service restarts done by the sentinel"), + SENTINEL_TOTAL_RESTARTS("sentinel.totalRestarts", Unit.RESTART, "Total number of service restarts done by the sentinel since the sentinel was started"), + SENTINEL_UPTIME("sentinel.uptime", Unit.SECOND, "Time the sentinel has been running"), + SENTINEL_RUNNING("sentinel.running", Unit.INSTANCE, "Number of services the sentinel has running currently"); + + + private final String name; + private final Unit unit; + private final String description; + + SentinelMetrics(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; + } + +} |