From: jhh Date: Wed, 9 Feb 2022 01:23:41 +0000 (-0600) Subject: add constants for policy execution latency metric X-Git-Tag: 1.10.1~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F127025%2F1;p=policy%2Fcommon.git add constants for policy execution latency metric Issue-ID: POLICY-3761 Signed-off-by: jhh Change-Id: Ib4885e8f412c540796de37d18fc553da0a04f46c --- 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). */