From e2d1e06dc26fa88011b4cdee2f1a5034a5935e41 Mon Sep 17 00:00:00 2001 From: bjormel Date: Thu, 12 Dec 2024 14:45:46 +0000 Subject: [PATCH] New metric: atlassian.servicedesk.customers --- metrics/src/main/java/ai/vespa/metrics/ControllerMetrics.java | 1 + .../main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java | 1 + 2 files changed, 2 insertions(+) diff --git a/metrics/src/main/java/ai/vespa/metrics/ControllerMetrics.java b/metrics/src/main/java/ai/vespa/metrics/ControllerMetrics.java index fc39e6dc4a2..c54fe3bc0b1 100644 --- a/metrics/src/main/java/ai/vespa/metrics/ControllerMetrics.java +++ b/metrics/src/main/java/ai/vespa/metrics/ControllerMetrics.java @@ -56,6 +56,7 @@ public enum ControllerMetrics implements VespaMetrics { ATLASSIAN_EXCEPTIONS("atlassian.exceptions", Unit.FAILURE, "Controller: Atlassian exceptions"), ATLASSIAN_LAST_SUCCESS("atlassian.last_success", Unit.SECONDS_SINCE_EPOCH, "Controller: Last successful Atlassian synchronization"), ATLASSIAN_ASSETS("atlassian.assets", Unit.ITEM, "Controller: Number of assets in Atlassian"), + ATLASSIAN_SERVICEDESK_CUSTOMERS("atlassian.servicedesk.customers", Unit.ITEM, "Controller: Number of customers in the Atlassian Service Desk"), // Metrics per API, metrics names generated in ControllerMaintainer/MetricsReporter OPERATION_APPLICATION("operation.application", Unit.REQUEST, "Controller: Requests for /application API"), diff --git a/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java b/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java index 29f2553dffa..ea77018dd8a 100644 --- a/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java +++ b/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java @@ -213,6 +213,7 @@ private static Set getControllerMetrics() { addMetric(metrics, ControllerMetrics.ATLASSIAN_EXCEPTIONS.count()); addMetric(metrics, ControllerMetrics.ATLASSIAN_LAST_SUCCESS.last()); addMetric(metrics, ControllerMetrics.ATLASSIAN_ASSETS.max()); + addMetric(metrics, ControllerMetrics.ATLASSIAN_SERVICEDESK_CUSTOMERS.max()); return metrics; }