Skip to content

Commit

Permalink
Troubleshooting.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Oct 5, 2023
1 parent b19faa1 commit 662ae92
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,12 @@ class InputService(
logger.info("hurneyt ClusterMetricsInput HAS REMOTE CLUSTERS")
val responseMap = mutableMapOf<String, Map<String, Any>>()
client.threadPool().threadContext.stashContext().use {
scope.launch {
input.clusters.forEach { cluster ->
logger.info("hurneyt ClusterMetricsInput::cluster = $cluster")
input.clusters.forEach { cluster ->
logger.info("hurneyt ClusterMetricsInput::cluster = $cluster")
scope.launch {
val targetClient = CrossClusterMonitorUtils.getClientForCluster(cluster, client, clusterService)
val response = executeTransportAction(input, targetClient)
logger.info("hurneyt ClusterMetricsInput::response = ${response.toMap()}")

// Not all supported API reference the cluster name in their response.
// Mapping each response to the cluster name before adding to results.
Expand Down

0 comments on commit 662ae92

Please sign in to comment.