保存带有人性化功能的自定义模板失败,并出现以下错误:
Error: failed to save and apply Alertmanager configuration: template: mytemplate:2: function "humanize" not defined
模板内容为:
{{ humanize (0.123456) }}
Grafana版本:9.5+
它看起来不像正确的语法。尝试:
{{ humanize 0.123456 }}
文档:https://grafana.com/docs/grafana/v9.5/alerting/fundamentals/annotation-label/variables-label-annotation/