19 lines
842 B
Plaintext
Raw Normal View History

2025-03-19 17:38:46 +08:00
使用说明:
1. 先更改 0_container_name.sh的变量名字 (注意多个项目 名字不能重复 否则会报错)
2. 更改 1_run.sh脚本的变量root_dir(程序所在目录), images_name(封装好的镜像名字). 注意除非重新封装镜像否则workdir(镜像发布目录)变量不能改
3. 进到当前说明文档的目录, 用 ./脚本名字 运行
4. 修改数据目录权限为 65534
额外说明:
# 1. 修改访问端口
# scrape_configs:
# # 将下列内容替换成宿主机映射地址与端口 例如 ["192.168.80.100:9000"]
# - job_name 'promethenus'
# static_configs:
# - targets: ["localhost:9090"]
2. 添加 node 节点
scrape_configs:
- job_name: 'master_node'
static_configs:
- targets: ['192.168.80.100:9100']