add constants for policy execution latency metric 25/127025/1
authorjhh <jorge.hernandez-herrero@att.com>
Wed, 9 Feb 2022 01:23:41 +0000 (19:23 -0600)
committerjhh <jorge.hernandez-herrero@att.com>
Wed, 9 Feb 2022 01:23:41 +0000 (19:23 -0600)
Issue-ID: POLICY-3761
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib4885e8f412c540796de37d18fc553da0a04f46c

utils/src/main/java/org/onap/policy/common/utils/resources/PrometheusUtils.java

index b6dae14..bac65d4 100644 (file)
@@ -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).
      */