From 31cd444f89cd20467cea49bfd5cec31d5a606a12 Mon Sep 17 00:00:00 2001 From: Michael Pruss Date: Tue, 21 Sep 2021 15:53:32 -0400 Subject: Metrics on command-executor blueprints processor side Issue-ID: CCSDK-3471 Signed-off-by: Michael Pruss Change-Id: I871a032ff5c9ebfd408aaa28a7d24185dee7c953 --- .../org/onap/ccsdk/cds/controllerblueprints/core/BluePrintConstants.kt | 2 ++ .../blueprintsprocessor/services/execution/AbstractComponentFunction.kt | 2 ++ 2 files changed, 4 insertions(+) (limited to 'ms/blueprintsprocessor/modules') diff --git a/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/BluePrintConstants.kt b/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/BluePrintConstants.kt index 5c2ae7e16..4495ba4c9 100644 --- a/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/BluePrintConstants.kt +++ b/ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/BluePrintConstants.kt @@ -257,4 +257,6 @@ object BluePrintConstants { const val METRIC_TAG_BP_STATUS = "status" const val METRIC_TAG_BP_OUTCOME = "outcome" const val METRIC_TAG_TOPIC = "topic" + const val METRIC_TAG_STEP = "step" + const val METRIC_TAG_SCRIPT_NAME = "script_name" } diff --git a/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt b/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt index 2186d470b..9efcd384d 100644 --- a/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt +++ b/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt @@ -18,6 +18,7 @@ package org.onap.ccsdk.cds.blueprintsprocessor.services.execution import com.fasterxml.jackson.databind.JsonNode +import io.micrometer.core.instrument.MeterRegistry import kotlinx.coroutines.withTimeout import org.onap.ccsdk.cds.blueprintsprocessor.core.api.data.ExecutionServiceInput import org.onap.ccsdk.cds.blueprintsprocessor.core.api.data.ExecutionServiceOutput @@ -62,6 +63,7 @@ abstract class AbstractComponentFunction : BlueprintFunctionNode = hashMapOf() override fun getName(): String { -- cgit 1.2.3-korg