From d96f82472b83d179ad5727c674f6aa502d7e45af Mon Sep 17 00:00:00 2001 From: prakhar katiyar <39842461+prkhrkat@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:14:34 +0530 Subject: [PATCH] Merge pull request #96 from devtron-labs/event-names-fix feat: Event names fix as per prometheus --- constants/constants.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index 1ef38b12..59a026ab 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -34,15 +34,14 @@ const ( ) // metrics name constants - const ( - NATS_PUBLISH_COUNT = "Nats_Publish_Count" - NATS_CONSUMPTION_COUNT = "Nats_Consumption_Count" - NATS_CONSUMING_COUNT = "Nats_Consuming_Count" - NATS_EVENT_CONSUMPTION_TIME = "Nats_Event_Consumption_Time" - NATS_EVENT_PUBLISH_TIME = "Nats_Event_Publish_Time" - NATS_EVENT_DELIVERY_COUNT = "Nats_Event_Delivery_Count" - PANIC_RECOVERY_COUNT = "Panic_Recovery_Count" + NATS_PUBLISH_COUNT = "nats_publish_count" + NATS_CONSUMPTION_COUNT = "nats_consumption_count" + NATS_CONSUMING_COUNT = "nats_consuming_count" + NATS_EVENT_CONSUMPTION_TIME = "nats_event_consumption_time" + NATS_EVENT_PUBLISH_TIME = "nats_event_publish_time" + NATS_EVENT_DELIVERY_COUNT = "nats_event_delivery_count" + PANIC_RECOVERY_COUNT = "panic_recovery_count" ) // metrics labels constant