Alert rule validation does not accept valid template {{ .Time.Local.Format "15:04:05 MST" }}
Chronograf version: 1.10.0 Installation method: docker image chronograf:1.10 from docker hub Related issues: https://github.com/influxdata/chronograf/issues/5090, https://github.com/influxdata/chronograf/issues/5137, https://github.com/influxdata/chronograf/issues/5343 Related PRs: https://github.com/influxdata/chronograf/pull/5516
This is a re-opening of https://github.com/influxdata/chronograf/issues/5343, which was reported by commit de96add6719c71e2acfd56036e7273224bc218d2 in fixed in 1.8.5 through https://github.com/influxdata/chronograf/pull/5516.
Steps to reproduce: List the minimal actions needed to reproduce the behavior.
- 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 https://github.com/influxdata/chronograf/blob/406065e391633812d378fd644cb2ef8922020dfd/ui/src/kapacitor/utils/alertMessageValidation.ts#L63
Config: Does not seem relevant. I can provide this if it is.
Logs: No relevant log entries.