From 4416446f90ecfb4a843159a7cedb0cabaa4272ff Mon Sep 17 00:00:00 2001 From: "nastassia.dailidava" Date: Tue, 1 Oct 2024 12:45:57 +0200 Subject: [PATCH] allegro-internal/flex-roadmap#819 Migrated metrics to prometheus (lint) --- .../server/callbacks/MetricsDiscoveryServerCallbacks.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/server/callbacks/MetricsDiscoveryServerCallbacks.kt b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/server/callbacks/MetricsDiscoveryServerCallbacks.kt index e4e4fa1fa..6b1ca0ccd 100644 --- a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/server/callbacks/MetricsDiscoveryServerCallbacks.kt +++ b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/server/callbacks/MetricsDiscoveryServerCallbacks.kt @@ -74,9 +74,8 @@ class MetricsDiscoveryServerCallbacks(private val meterRegistry: MeterRegistry) meterRegistry.counter( "requests.total", Tags.of( - "connection-type", - "grpc", "stream-type", - StreamType.fromTypeUrl(request.typeUrl).name.lowercase(), "discovery-request-type", "delta" + "connection-type", "grpc", + "stream-type", StreamType.fromTypeUrl(request.typeUrl).name.lowercase(), "discovery-request-type", "delta" ) ) .increment()