diff options
author | Dan Timoney <dtimoney@att.com> | 2021-09-29 12:35:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-09-29 12:35:37 +0000 |
commit | 873c0891839cfdfa01a48fbf88a9a8b5090fd6a3 (patch) | |
tree | 1ade67501990deab622fc0b1dbec05a1e758ea02 /ms/blueprintsprocessor/modules | |
parent | 702c0fa6355436591e2a22d9390ecbbdade0ca6e (diff) | |
parent | 31cd444f89cd20467cea49bfd5cec31d5a606a12 (diff) |
Merge "Metrics on command-executor blueprints processor side"
Diffstat (limited to 'ms/blueprintsprocessor/modules')
2 files changed, 4 insertions, 0 deletions
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<ExecutionServic lateinit var interfaceName: String lateinit var operationName: String lateinit var nodeTemplateName: String + lateinit var meterRegistry: MeterRegistry var operationInputs: MutableMap<String, JsonNode> = hashMapOf() override fun getName(): String { |