tidb grafana显示问题不同步及重置监控数据

原因: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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值