summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authoryngveaasheim <yngve@yahooinc.com>2023-02-06 17:21:29 +0100
committeryngveaasheim <yngve@yahooinc.com>2023-02-06 17:21:29 +0100
commita7058812c42a46a49f7fdf1168370dc0ea36a9cc (patch)
tree2885c1e7a0088d5ae7b882e76520d5d5220cc39d /container-core
parent95e694413c0d4638c95e1d1285b6a45727dc616a (diff)
Add skeleton and sample metrics for StorageMetrics and DistributorMetrics.
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/metrics/DistributorMetrics.java36
-rw-r--r--container-core/src/main/java/com/yahoo/metrics/StorageMetrics.java35
2 files changed, 71 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/metrics/DistributorMetrics.java b/container-core/src/main/java/com/yahoo/metrics/DistributorMetrics.java
new file mode 100644
index 00000000000..a2e8395f34c
--- /dev/null
+++ b/container-core/src/main/java/com/yahoo/metrics/DistributorMetrics.java
@@ -0,0 +1,36 @@
+package com.yahoo.metrics;
+
+import java.util.List;
+
+/**
+ * @author yngveaasheim
+ */
+public enum DistributorMetrics implements VespaMetrics {
+
+ VDS_IDEALSTATE_BUCKETS_RECHECKING("vds.idealstate.buckets_rechecking", Unit.BUCKET, "The number of buckets that we are rechecking for ideal state operations"),
+ VDS_IDEALSTATE_IDEALSTATE_DIFF("vds.idealstate.idealstate_diff", Unit.BUCKET, "A number representing the current difference from the ideal state. This is a number that decreases steadily as the system is getting closer to the ideal state");
+
+
+ private final String name;
+ private final Unit unit;
+ private final String description;
+
+ DistributorMetrics(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;
+ }
+
+}
diff --git a/container-core/src/main/java/com/yahoo/metrics/StorageMetrics.java b/container-core/src/main/java/com/yahoo/metrics/StorageMetrics.java
new file mode 100644
index 00000000000..12d4085ff4c
--- /dev/null
+++ b/container-core/src/main/java/com/yahoo/metrics/StorageMetrics.java
@@ -0,0 +1,35 @@
+package com.yahoo.metrics;
+
+import java.util.List;
+
+/**
+ * @author yngveaasheim
+ */
+public enum StorageMetrics implements VespaMetrics {
+
+ VDS_DATASTORED_ALLDISKS_BUCKETS("vds.datastored.alldisks.buckets", Unit.BUCKET, "Number of buckets managed"),
+ VDS_DATASTORED_ALLDISKS_DOCS("vds.datastored.alldisks.docs", Unit.DOCUMENT, "Number of documents stored");
+
+ private final String name;
+ private final Unit unit;
+ private final String description;
+
+ StorageMetrics(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;
+ }
+
+}