Skip to content

5.0版本,告警记录里显示的时间没有经过转化 #538

Description

@Leif160519

看格式像是处理过的,其实是UTC时间,时间格式中间也没有T进行标记,会让人误以为是CST时间

Image Image

容器中已经设置了TZ的环境变量为Asia/Shanghai,/etc/localtime也从宿主机挂载到了容器中,但是exec进入容器,发现时间还是utc时间
,缺少tzdata包
Image
安装tzdata包之后,终端时间正常,但是我不确定这个跟prometheusalert记录的告警发出时间是否有关,重新发送测试告警后,发送时间记录的还是utc时间

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions