Grafana 错误:函数“人性化”未定义

问题描述 投票:0回答:1

保存带有人性化功能的自定义模板失败,并出现以下错误:

Error: failed to save and apply Alertmanager configuration: template: mytemplate:2: function "humanize" not defined

模板内容为:

{{ humanize (0.123456) }}

Grafana版本:9.5+

grafana humanize
1个回答
0
投票

它看起来不像正确的语法。尝试:

{{ humanize 0.123456 }}

文档:https://grafana.com/docs/grafana/v9.5/alerting/fundamentals/annotation-label/variables-label-annotation/

© www.soinside.com 2019 - 2024. All rights reserved.