ansible重启监控

【 TiDB 使用环境】生产 【 TiDB 版本】v4.0.0 【遇到的问题】 【复现路径】做过哪些操作出现的问题`
【问题现象及影响】

ansible如何重启监控

https://docs.pingcap.com/zh/tidb/v4.0/online-deployment-using-ansible

参考下

ansible太老了,都忘记怎么用了,考虑下升级吗,或者直接去目标机器执行重启脚本也可以。

好像只有 4.0 以下的才能用~

是,切换到tiup运维管理更方便点:smiley:

ansible-playbook rolling_update_monitor.yml --tags=prometheus

这样重启也可以。

[root@tidb01 ~]# systemctl | grep prometheus
  prometheus-9090.service                                                                               loaded active     running      prometheus service
  prometheus-9107.service                                                                               loaded active     running      prometheus-9107 service
  prometheus-9127.service                                                                               loaded active     running      prometheus-9127 service
  prometheus-9691.service                                                                               loaded active     running      prometheus service
  prometheus-9940.service                                                                               loaded active     running      prometheus service
[root@tidb01 ~]# systemctl restart prometheus-9090.service