Skip to content

Commit

Permalink
Remove unnecessary prod label in grafana links
Browse files Browse the repository at this point in the history
This prevents logs loading for non-prod users and has zero benefit because
the env is also part of the userID!
  • Loading branch information
Fizzadar committed Sep 26, 2024
1 parent 5bbd404 commit cf478ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grafana.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit cf478ce

Please sign in to comment.