Skip to content

Commit

Permalink
Update logs links for new loki labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Sep 25, 2024
1 parent bac4f4e commit b320c28
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 @@ -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
}
Expand Down

0 comments on commit b320c28

Please sign in to comment.