shiyiwenv
shiyiwenv
> @ningbingjian1 可以把时间+8小时转化为北京时间,然后打印输出 怎样在模板里面加+8 小时呢。 模板是这样的 :故障时间: {{ $alert.StartsAt.Format "2006-01-02 15:04:05" }}
> @shiyiwenv 比较笨一点就是直接把时间加8小时,例如: > > ``` > {{ (.StartsAt.Add 28800e9).Format "2006-01-02 15:04:05" }} > ``` 按照上面的方式试了一下,go模板语法会报错的。 :( unexpected \"(\" in operand"
> > > @shiyiwenv 比较笨一点就是直接把时间加8小时,例如: > > > ``` > > > {{ (.StartsAt.Add 28800e9).Format "2006-01-02 15:04:05" }} > > > ``` > > > > > > 按照上面的方式试了一下,go模板语法会报错的。 :(...
> it's all a bit mysterious, but I agree that the metric name and the node label appear to shift a bit depending on setups. Using node-exporter v0.16.0 the metric...