-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Rule UI fails to load, template expansion failed, can't evaluate field GetEvaluationTimestamp #3311
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
Comments
Yes, that seems to be the case. Help wanted, this should be easy enough. |
Hi, is the issue located here thanos/pkg/ui/templates/rules.html Line 13 in c885f7a
where
needs to be changed to
wherever GetEvaluationTimestamp occurs? Like how prometheus/prometheus#7865 does it? |
Yep, exactly. |
@prmsrswt How would I go about verifying the change works - ie. how do I run the Thanos Rule UI? Thanks! |
If you have a branch, I can build from it to test it. I have a fully working Thanos environment with broken rules UIs. |
Alright, do you want to try build and test from https://github.com/allenmqcymp/thanos/tree/rulefix. |
Also for future you can use https://github.com/thanos-community/thanos-docker-compose for a local set-up using docker and docker-compose. |
I'll be able to test this shortly. Do I need to run "make assets" before "make build"? I only did "make build" which didn't fix the issue. Trying "make assets && make build" now. |
With the fixed binary I get this error now:
|
Nah I'm probably wrong. |
Actually, that worked. This is the final change I made (+
Can anyone who knows the code better confirm that these lines don't need to be changed? allenmqcymp@26ef1dc#diff-f46df6e62ca9bd8a2374a0b3431590f859f6766e73be74c5e93ab86a42108886L39-L41 |
Looking at https://github.com/prometheus/prometheus/blob/master/rules/recording.go#L177 I think that we don't need to change anything on line 39 and 41. What you did seems correct, we only need to change those two lines. |
Cool. @sevagh if you want to submit a PR fixing it, that's fine by me since you ended up testing. @prmsrswt thanks for the help. Will try look for another issue |
As soon as I get my other open PR merged, I'll open one for this fix. |
I can no longer load the loaded rules page (/rules) in the Thanos Rule UI since upgrading Prometheus to 2.21.0 and Thanos to 0.16.0-rc.0:
I see the following issue in the Prometheus project that may be related? prometheus/prometheus#7865
The text was updated successfully, but these errors were encountered: