TiUP Grafana 匿名登录配置

如果你要 自定义 Grafana 的其他配置,你可以在 grafana_servers 的配置部分添加其他配置。

以下为新增 [log.file] level 字段以及 smtp 配置示例:

# # Server configs are used to specify the configuration of Grafana Servers.
grafana_servers:
  # # The ip address of the Grafana Server.
  - host: 127.0.0.1
    config:
      log.file.level: warning
      smtp.enabled: true
      smtp.host: {IP}:{port}
      smtp.user: example@pingcap.com
      smtp.password: {password}
      smtp.skip_verify: true

上述配置后,在集群进行 deploy/scale-out/scale-in/reload 操作时,TiUP 会将 config 字段的内容会添加到 grafana 的配置文件 grafana.ini 中。

https://docs.pingcap.com/zh/tidb/stable/customized-montior-in-tiup-environment#自定义-alertmanager-配置

这个是v7.5.0的配置提示,你试试看行不行。

1 个赞