Skip to content

Commit

Permalink
added service name to eds config #292
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Sep 25, 2023
1 parent 7167f87 commit f2b77b9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import pl.allegro.tech.servicemesh.envoycontrol.EnvoyControlProperties
import pl.allegro.tech.servicemesh.envoycontrol.server.ExecutorType
import reactor.core.publisher.Flux


class ThreadPoolMetricTest {

@Test
Expand All @@ -27,9 +26,10 @@ class ThreadPoolMetricTest {

// then
val allMeterNames = meterRegistry.meters.map { it.id.name }
val requiredMeterNames = listOf("grpc-server-worker", "grpc-worker-event-loop", "snapshot-update", "group-snapshot").flatMap {
listOf("$it.executor.completed", "$it.executor.active", "$it.executor.queued", "$it.executor.pool.size")
}
val requiredMeterNames =
listOf("grpc-server-worker", "grpc-worker-event-loop", "snapshot-update", "group-snapshot").flatMap {
listOf("$it.executor.completed", "$it.executor.active", "$it.executor.queued", "$it.executor.pool.size")
}

assertThat(allMeterNames).containsAll(requiredMeterNames)

Expand Down

0 comments on commit f2b77b9

Please sign in to comment.