Skip to content
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

Ruler UI: alert.query-template is not honored inside the Rules UI #7278

Open
jkroepke opened this issue Apr 15, 2024 · 3 comments
Open

Ruler UI: alert.query-template is not honored inside the Rules UI #7278

jkroepke opened this issue Apr 15, 2024 · 3 comments

Comments

@jkroepke
Copy link

Thanos, Prometheus and Golang version used:

Object Storage Provider:

Azure

What happened:

Clicking inside the Ruler UI > Rules > Any Expressions, the default value /graph?g0.expr= for building the querier URL will be used instead the template from alert.query-template. I'm talking about the links in the screen below:

image

Ref:

return `../graph?g0.expr=${encodeURIComponent(expr)}&g0.tab=1&g0.stacked=0&g0.range_input=1h`;

What you expected to happen:

If I define alert.query-template, if UI should take care about it.

How to reproduce it (as minimally and precisely as possible):

  1. Start Ruler with any alert.query-template value.
  2. Setup Rules
  3. Go to Ruler UI and observe that alert.query-template is not used.

Full logs to relevant components:

Anything else we need to know:

@Norman-Lee
Copy link

@jkroepke Hey, I'm looking to some golang development and I was wondering if I could pick this up as a first issue into golang in general.

@jkroepke
Copy link
Author

@Norman-Lee I guess the issue is more typescript related as golang.

@Norman-Lee
Copy link

@jkroepke Oh rip, I'll probably pass on this then. Thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants