Skip to content

Commit cf478ce

Browse files
committed
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!
1 parent 5bbd404 commit cf478ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grafana.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ func makeGrafanaLogsURLs(username string) (string, string, error) {
5151
userID = userID + ":beeper.com"
5252
}
5353

54-
bridgeLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",app="bridges",env="prod"} | unpack`)
54+
bridgeLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",app="bridges"} | unpack`)
5555
if err != nil {
5656
return "", "", err
5757
}
5858

59-
megahungryLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",namespace="megahungry",env="prod"} | unpack`)
59+
megahungryLogsURL, err := makeGrafanaLogURL(`{user_id="@` + userID + `",namespace="megahungry"} | unpack`)
6060
if err != nil {
6161
return "", "", err
6262
}

0 commit comments

Comments
 (0)