栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

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

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/884583.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号