Update ECS主机监控.md

This commit is contained in:
StarsL.cn 2022-06-14 22:49:10 +08:00 committed by GitHub
parent 2cab2e5ced
commit 0f21e1eebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,11 +32,11 @@
### 批量导入自建主机脚本 ### 批量导入自建主机脚本
在项目仓库根目录的units目录下编辑`selfnode-instance.list`,写入监控目标的信息:机房/公司 租户/部门 区域/项目 分组/环境 名称 实例(ip:端口) 系统(linux/windows),每行一个,空格分隔。 在项目仓库根目录的`units`目录下:编辑`selfnode-instance.list`,写入监控目标的信息:机房/公司 租户/部门 区域/项目 分组/环境 名称 实例(ip:端口) 系统(linux/windows),每行一个,空格分隔。
**注意前5个字段组合起来必须唯一作为一个监控项的ID。即Consul的ServiceID** **注意前5个字段组合起来必须唯一作为一个监控项的ID。即Consul的ServiceID**
再修改导入脚本`selfnode-input.py`中的consul_token和consul_url保存后执行selfnode-input.py即可导入所有监控目标到Consul并符合Prometheus的自动发现配置。 再修改导入脚本`selfnode-input.py`中的consul_token和consul_url保存后执行`selfnode-input.py`即可导入所有监控目标到Consul并符合Prometheus的自动发现配置。
### 注意: ### 注意: