原因:grafana显示问题,始终不同步,后来发现是时间问题。
1,重置时间(服务器时间偏移+8);

tiup cluster exec tidb-test --sudo --command "systemctl stop ntpd.service;sudo ntpdate pool.ntp.org;sudo systemctl start ntpd.service"
2,重置监控(重置prometheus数据)

######缩容prometheus
tiup cluster scale-in tidb-test  --node 172.16.116.232:9090

######扩容prometheus
tiup cluster scale-out tidb-test /home/tidb/prometheus.toml
#####prometheus.toml
monitoring_servers:
- host: 172.16.116.232
  ssh_port: 22
  port: 9090
  ng_port: 12020
  deploy_dir: /tidb-deploy/prometheus-8249
  data_dir: /tidb-data/prometheus-8249
  log_dir: /tidb-deploy/prometheus-8249/log
  external_alertmanagers: []
  arch: arm64
  os: linux

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐