Promethues 发送告警,设置时区:
触发时间:
{{ .StartsAt.Format "2020-01-02 15:04:05" }}
设置新的时区(Add 28800e9 增加8个小时):
{{ (.StartsAt.Add 28800e9).Format "2020-01-02 15:04:05" }}
Promethues 发送告警,设置时区:
触发时间:
{{ .StartsAt.Format "2020-01-02 15:04:05" }}
设置新的时区(Add 28800e9 增加8个小时):
{{ (.StartsAt.Add 28800e9).Format "2020-01-02 15:04:05" }}