From f1458a50aecb4507bcfa0761286e58eaf41468e6 Mon Sep 17 00:00:00 2001 From: invis-bitfly <162128378+invis-bitfly@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:19:41 +0100 Subject: [PATCH] fix(monitoring) rp & pubkey healthz only on prod --- backend/pkg/monitoring/services/base.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/pkg/monitoring/services/base.go b/backend/pkg/monitoring/services/base.go index ec85a5ffb..b27ebeaf6 100644 --- a/backend/pkg/monitoring/services/base.go +++ b/backend/pkg/monitoring/services/base.go @@ -113,9 +113,10 @@ func NewStatusReport(id constants.Event, timeout time.Duration, check_interval t func GetRequiredEvents() []constants.Event { // i would hope this simple of a function doesnt need caching requiredEvents := constants.RequiredEvents - if utils.Config.DeploymentType == "production" { - requiredEvents = append(requiredEvents, constants.ProductionRequiredEvents...) + if utils.Config.DeploymentType != "production" { + return requiredEvents } + requiredEvents = append(requiredEvents, constants.ProductionRequiredEvents...) if utils.Config.RocketpoolExporter.Enabled { requiredEvents = append(requiredEvents, constants.Event_ExporterLegacyRocketPool) }