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

Alert rule validation does not accept valid template {{ .Time.Local.Format "15:04:05 MST" }} #6005

Open
eras opened this issue Oct 11, 2022 · 0 comments

Comments

@eras
Copy link

eras commented Oct 11, 2022

Chronograf version: 1.10.0
Installation method: docker image chronograf:1.10 from docker hub
Related issues: #5090, #5137, #5343
Related PRs: #5516

This is a re-opening of #5343, which was reported by commit de96add in fixed in 1.8.5 through #5516.

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. In the Alert message template use
Doorbell  {{ .Time.Local.Format "15:04:05 MST" }}

Expected behavior:
I expect validation to pass.

Actual behavior:
Validation fails with message "Please correct templates in alert message."

Environment info:

  • Chronograf version: 1.10.0

Other versions are probably not relevant, as the verification occurs without consulting external components in

export const isValidMessage = (message: string): boolean => {

Config:
Does not seem relevant. I can provide this if it is.

Logs:
No relevant log entries.

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

No branches or pull requests

1 participant