关于钉钉的通知模板问题

Viewed 89

监控指标: {{.TagsJSON}} TagsJSON能否单独把 instance 取出来
我的数据源是 prometheus

1 Answers

已经自己解决了 {{index .TagsMap "instance"}} 即可取出主机