From cf478ce670fc38f64ab4c27683a8051e9a7c2f6f Mon Sep 17 00:00:00 2001 From: Nick Mills-Barrett Date: Thu, 26 Sep 2024 09:31:45 +0100 Subject: [PATCH] Remove unnecessary prod label in grafana links This prevents logs loading for non-prod users and has zero benefit because the env is also part of the userID! --- grafana.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grafana.go b/grafana.go index 6d70f20..487d826 100644 --- a/grafana.go +++ b/grafana.go @@ -51,12 +51,12 @@ func makeGrafanaLogsURLs(username string) (string, string, error) { userID = userID + ":beeper.com" } - bridgeLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",app="bridges",env="prod"} | unpack`) + bridgeLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",app="bridges"} | unpack`) if err != nil { return "", "", err } - megahungryLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",namespace="megahungry",env="prod"} | unpack`) + megahungryLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",namespace="megahungry"} | unpack`) if err != nil { return "", "", err }