-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change GeneratorURL to use configurable Grafana explore URL #8500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks very much @aminesnow
pkg/ruler/base/ruler_test.go
Outdated
@@ -1665,7 +1667,7 @@ func TestSendAlerts(t *testing.T) { | |||
Annotations: []labels.Label{{Name: "a2", Value: "v2"}}, | |||
StartsAt: time.Unix(2, 0), | |||
EndsAt: time.Unix(3, 0), | |||
GeneratorURL: "http://localhost:9090/graph?g0.expr=up&g0.tab=1", | |||
GeneratorURL: fmt.Sprintf("http://localhost:9090/explore?left={\"queries\":[%s]}", escapedExpression), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit: it's mildly confusing here to keep using :9090
since that's the Prometheus port
@dannykopping I would like to rebase if you don't mind. |
There should never really be a reason to rebase (i.e. rewrite history) since we squash-merge. |
Good point! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[docs team] LGTM
What this PR does / why we need it:
This PR changes the
GeneratorURL
associated with alerts generated by Loki. The newGeneratorURL
uses a Grafana URL path.Which issue(s) this PR fixes:
Fixes #6743
Checklist
CONTRIBUTING.md
guide (required)CHANGELOG.md
updateddocs/sources/upgrading/_index.md