1. 配置application.properties文件,暴露metrics数据
2. 访问{ip}:8848/nacos/actuator/prometheus,看是否能访问到metrics数据
3. 采集服务器导入脚本,并赋权
注意修改NacosGather.py脚本中的ServerIP为实际环境ServerIP
4. 新建临时数据存放文件
5. 平台导入模板后添加监控
此处填入nacos的IP、端口Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
management.endpoints.web.exposure.include=*
chmod +x /itops/zabbix/scripts/NacosGather.py
chown itops. /itops/zabbix/scripts/NacosGather.py
注意修改NacosGather.py脚本中的ServerIP为实际环境ServerIP
chmod +x /itops/zabbix/share/zabbix/externalscripts/NacosDataAcquisition
chown itops. /itops/zabbix/share/zabbix/externalscripts/NacosDataAcquisition
mkdir -p /itops/zabbix/logs/Nacos/
touch /itops/zabbix/logs/Nacos/Nacos__.txt
chown itops. -R /itops/zabbix/logs/Nacos
此处填入nacos的IP、端口Was this page helpful?
