tidb-ansible 如何自定义 prometheus 端口并让其生效

9090端口也没有被占用

你好,

请问是否为第一次部署,tidb-ansible 未来的几个版本就不会在维护了,这边如果部署 3.0 以上版本,推荐使用 tiup 进行部署集群,简洁方便,报错明显,易追踪。

https://pingcap.com/docs-cn/stable/how-to/deploy/orchestrated/tiup/

主要我们线上用的是tidb-ansible部署的,tiup可以维护tidb-ansible部署的集群吗?

你好

是可以的,可以将 tidb-ansible 部署的集群通过 tiup cluster import -d tidb-ansible-dir 导入。


image

prometheus服务是指monitoring_server吗》?这个配置文件我如何指定端口?

你好,

可以看下 tidb-ansible 在官方文档中的描述,其中有提到自定义端口的。

好的,找到了

:love_you_gesture:

image 这个服务就是prometheus服务吗?

你好,

是的。此配置项是 prometheus server 配置项。

[monitored_servers] # 指的是部署 Node_exporter 和 Blackbox_exporter 

我修改了端口,现在报"Could not find the requested service prometheus-9990.service: host"

你好,

修改端口后需要 deploy -l 更新 service 文件的

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。