如何修改 prometheus 、grafana端口,部署端口占用

±-------------------------------------------------------------------------------------------+
| Packages |
±-------------±--------±-----------------------±-----------------------------------------+
| Repository | Version | Release | Md5 |
±-------------±--------±-----------------------±-----------------------------------------+
| obproxy-ce | 4.3.2.0 | 26.el7 | cf88df6e874bc2c5b831480f028a038ddc5931ff |
| obagent | 4.2.2 | 100000042024011120.el7 | 8a5c3b8c55defe409d1e72b7efd13c5e41549545 |
| grafana | 7.5.17 | 1 | 5129b0134e31d273c970a7e3c7370990016bee16 |
| oceanbase-ce | 4.3.4.0 | 100000162024110717.el7 | 3e4395c6aae07097122833e2d2f2100bb1b789b6 |
| prometheus | 2.37.1 | 10000102022110211.el7 | 2d856b4a90e7a35322bc3412231f714fde3fd794 |
±-------------±--------±-----------------------±-----------------------------------------+
Repository integrity check ok
Load param plugin ok
Open ssh connection ok
Parameter check ok
Cluster status check ok
Initializes obproxy work home ok
Initializes obagent work home ok
Initializes grafana work home ok
Initializes observer work home ok
Initializes prometheus work home ok
Remote obproxy-ce-4.3.2.0-26.el7-cf88df6e874bc2c5b831480f028a038ddc5931ff repository install ok
Remote obproxy-ce-4.3.2.0-26.el7-cf88df6e874bc2c5b831480f028a038ddc5931ff repository lib check ok
Remote obagent-4.2.2-100000042024011120.el7-8a5c3b8c55defe409d1e72b7efd13c5e41549545 repository install ok
Remote obagent-4.2.2-100000042024011120.el7-8a5c3b8c55defe409d1e72b7efd13c5e41549545 repository lib check ok
Remote grafana-7.5.17-1-5129b0134e31d273c970a7e3c7370990016bee16 repository install ok
Remote grafana-7.5.17-1-5129b0134e31d273c970a7e3c7370990016bee16 repository lib check ok
Remote oceanbase-ce-4.3.4.0-100000162024110717.el7-3e4395c6aae07097122833e2d2f2100bb1b789b6 repository install ok
Remote oceanbase-ce-4.3.4.0-100000162024110717.el7-3e4395c6aae07097122833e2d2f2100bb1b789b6 repository lib check ok
Remote prometheus-2.37.1-10000102022110211.el7-2d856b4a90e7a35322bc3412231f714fde3fd794 repository install ok
Remote prometheus-2.37.1-10000102022110211.el7-2d856b4a90e7a35322bc3412231f714fde3fd794 repository lib check ok
demo deployed
Get local repositories ok
Search plugins ok
Load cluster param plugin ok
Open ssh connection ok
Check before start observer ok
[WARN] OBD-1011: (127.0.0.1) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[WARN] OBD-1007: (127.0.0.1) The recommended number of open files is 655350 (Current value: 20000)
[WARN] OBD-1007: (127.0.0.1) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1017: (127.0.0.1) The value of the “vm.max_map_count” must be within [327600, 1310720] (Current value: 65530, Recommended value: 655360)
[WARN] OBD-1017: (127.0.0.1) The value of the “vm.min_free_kbytes” must be within [32768, 2097152] (Current value: 13283584, Recommended value: 2097152)
[WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/)

Check before start obproxy ok
Check before start obagent ok
Check before start prometheus x
[ERROR] OBD-1001: 127.0.0.1:9090 port is already used

Check before start grafana x
[ERROR] OBD-1001: 127.0.0.1:3000 port is already used

See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 405d953a-a7d6-11ef-b356-b04fa6a83e4b
If you want to view detailed obd logs, please run: obd display-trace 405d953a-a7d6-11ef-b356-b04fa6a83e4b

通过配置文件修改没反应
通过obd启动修改也没反应
obd demo --oceanbase-ce.Prometheus=9091

obd demo
–oceanbase-ce.mysql_port=2881
–oceanbase-ce.rpc_port=2882
–obproxy-ce.listen_port=2883
–obproxy-ce.prometheus_listen_port=2884
–obagent.monagent_http_port=8088
–obagent.mgragent_http_port=8089
–grafana.port=3000
–prometheus.port=9090
–oceanbase-ce.datafile_size=xxG
–oceanbase-ce.log_disk_size=xxG
–oceanbase-ce.memory_limit=xG
后面是默认端口,可以自定义修改的
obd demo --oceanbase-ce.Prometheus=9091。可指定端口部署
参考这种方式失败了么。
试试obd web方式部署

1 个赞