From 74966d4b390ab232c3c64ab71084ad17903a6042 Mon Sep 17 00:00:00 2001 From: Pieszka Date: Mon, 15 Apr 2024 09:26:44 +0200 Subject: [PATCH] metrics port configuration corrected --- internal/subaccountsync/subaccount_sync_service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/subaccountsync/subaccount_sync_service.go b/internal/subaccountsync/subaccount_sync_service.go index cf3fcc21d1..99ebd86adc 100644 --- a/internal/subaccountsync/subaccount_sync_service.go +++ b/internal/subaccountsync/subaccount_sync_service.go @@ -95,7 +95,8 @@ func (s *SyncService) Run() { http.Handle("/metrics", promHandler) go func() { - err := http.ListenAndServe(s.cfg.MetricsPort, nil) + address := fmt.Sprintf(":%d", s.cfg.MetricsPort) + err := http.ListenAndServe(address, nil) if err != nil { logger.Error(fmt.Sprintf("while serving metrics: %s", err)) }