From 6a7b2bafee504d41f061f470746999f4ddcaf964 Mon Sep 17 00:00:00 2001 From: jhh Date: Tue, 8 Feb 2022 19:23:41 -0600 Subject: add constants for policy execution latency metric Issue-ID: POLICY-3761 Signed-off-by: jhh Change-Id: Ib4885e8f412c540796de37d18fc553da0a04f46c --- .../onap/policy/common/utils/resources/PrometheusUtils.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/src/main/java/org/onap/policy/common/utils/resources/PrometheusUtils.java b/utils/src/main/java/org/onap/policy/common/utils/resources/PrometheusUtils.java index b6dae149..bac65d4e 100644 --- a/utils/src/main/java/org/onap/policy/common/utils/resources/PrometheusUtils.java +++ b/utils/src/main/java/org/onap/policy/common/utils/resources/PrometheusUtils.java @@ -52,6 +52,18 @@ public class PrometheusUtils { */ public static final String POLICY_EXECUTION_HELP = "The total number of TOSCA policy executions."; + /** + * Policy Execution Latency in Seconds Metric Name. + * This metric name is not to be used as a counter. + */ + public static final String POLICY_EXECUTIONS_LATENCY_SECONDS_METRIC = "policy_executions_latency_seconds"; + + /** + * Policy Execution Latency in Seconds Metric Help message. + */ + public static final String POLICY_EXECUTIONS_LATENCY_SECONDS_HELP = + "The latency in seconds of TOSCA policy executions."; + /** * Metric label for arbitrary operations (eg. deploy, undeploy, execute). */ -- cgit 1.2.3-korg