用elasticsearch_exporter监控
复制代码
[root@mn-test-es7-18-101 wbird]# cat /etc/systemd/system/elasticsearch_exporter.service
[Unit]
Description=elasticsearch_exporter
After=network.target
[Service]
Type=simple
User=wbird
Group=wbird
Restart=no
{spa.hnytjg.com]
{spa.wooubanjia.com]
{spa.id2023.com]
{spa.0991xjy.net]
{spa.prg-edu.com]
{spa.90000hj.com]
{spa.bangdd.com]
ExecStart=/home/wbird/elasticsearch_exporter-1.6.0.linux-amd64/elasticsearch_exporter --es.uri=http://192.168.18.101:9200 # es的地址
PrivateTmp=true
[Install]
WantedBy=multi-user.target
复制代码
启动服务
systemctl daemon-reload
systemctl start elasticsearch_exporter
分类: 运维狗的碎碎渣 / ELK日志平台