From b320c284435a33fadbab1d7e6459ef3f3abafe30 Mon Sep 17 00:00:00 2001 From: Nick Mills-Barrett Date: Wed, 25 Sep 2024 13:38:28 +0100 Subject: [PATCH] Update logs links for new loki labels --- grafana.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grafana.go b/grafana.go index 97693d0..2d86f54 100644 --- a/grafana.go +++ b/grafana.go @@ -45,12 +45,12 @@ func makeGrafanaLogURL(expr string) (string, error) { } func makeGrafanaLogsURLs(username string) (string, string, error) { - bridgeLogsURL, err := makeGrafanaLogURL(`{username="` + username + `",env="prod"} | unpack`) + bridgeLogsURL, err := makeGrafanaLogURL(`{user_id="@` + username + `:beeper.com",app="bridges",env="prod"} | unpack`) if err != nil { return "", "", err } - megahungryLogsURL, err := makeGrafanaLogURL(`{user_id="@` + username + `:beeper.com",env="prod"} | unpack`) + megahungryLogsURL, err := makeGrafanaLogURL(`{user_id="@` + username + `:beeper.com",namespace="megahungry",env="prod"} | unpack`) if err != nil { return "", "", err }