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

thanos 0.3.0 rule compent #854

Closed
zhxiaom5 opened this issue Feb 18, 2019 · 4 comments
Closed

thanos 0.3.0 rule compent #854

zhxiaom5 opened this issue Feb 18, 2019 · 4 comments

Comments

@zhxiaom5
Copy link

thanos 0.3.0
thanos rule

http get http://xxx:xx/rules
below error occus
level=warn ts=2019-02-18T13:52:26.392412042Z caller=ui.go:86 msg="template expansion failed" err="template: :66:57: executing "content" at <.GetEvaluationTime.S...>: can't evaluate field GetEvaluationTime in type *rules.Group"

@bwplotka
Copy link
Member

Thanks for report. Can you submit the rule that causes this? (: Looks like a valid bug.

@zhxiaom5
Copy link
Author

zhxiaom5 commented Mar 4, 2019

I would love to,but my rule really long and complex,maybe I should get to know which rule trigger this error before I paste all the rules

@davtsur
Copy link
Contributor

davtsur commented Mar 5, 2019

Seems like need to use GetEvaluationDuration in rules.html instead of GetEvaluationTime.

Reference :
https://github.com/prometheus/prometheus/pull/4416/files

@davtsur
Copy link
Contributor

davtsur commented Mar 6, 2019

@bwplotka, can u take a look at the PR:

#894

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