当前位置:网站首页>Elk - hearthbeat implements service monitoring
Elk - hearthbeat implements service monitoring
2022-06-11 11:43:00 【Rufeng】
Hearthbeat, heartbeat , seeing the name of a thing one thinks of its function ,Hearthbeat It can be used to detect whether the service is running normally .
Hearthbeat Support ICMP、TCP and HTTP, Also support TLS、 Authentication and proxy .
Hearthbeat Can and Logstash、Elasticsearch and Kibana Seamless collaboration . install Hearthbeat, Add services to be monitored , Good configuration Elasticsearch and Kibana, You can output the results to Elasticsearch, And in Kibana Show it .
Kibana No configuration required Dashboard, Just click Uptime Menu to see the results .
Elasticsearch and Kibana For installation, please refer to : Quickly build ELK(7.2.0)
download
curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-7.2.0-linux-x86_64.tar.gz
tar xzvf heartbeat-7.2.0-linux-x86_64.tar.gz -C /opt/elk/
To configure
cd /opt/elk/heartbeat-7.2.0-linux-x86_64/
vi heartbeat.yml
For example, by simply detecting console url To monitor Websphere Is it working .
monitor TCP Refer to the examples in the notes .Schedule each 10 Every second .
# Configure monitors inline
heartbeat.monitors:
- type: http
# List or urls to query
urls: ["https://dummy.hostname.net:9043/ibm/console/logon.jsp"]
# Configure task schedule
schedule: '@every 10s'
#- type: tcp
#hosts: ["192.168.1.101:1414"]
#schedule: '@every 10s'
setup.kibana:
# Kibana Host
# Scheme and port can be left out and will be set to the default (http and 5601)
# In case you specify and additional path, the scheme is required: http://localhost:5601/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
host: "localhost:5601"
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["localhost:9200"]
start-up
chown elk:elk -R /opt/elk/heartbeat-7.2.0-linux-x86_64/
sudo chmod o+rx -R /opt/elk/heartbeat-7.2.0-linux-x86_64/
sudo -u elk ./heartbeat setup
sudo -u elk nohup ./heartbeat -e &
verification
- Open http://localhost:5601/
- Go to Uptime.
- Restart the monitored service

边栏推荐
- Publish WordPress database cache plug-in: DB cache reloaded 3.1
- log4j-slf4j-impl cannot be present with log4j-to-slf4j
- Guice integrated properties configuration
- NFT digital collection system development and construction process
- CPU负载怎么理解
- 2019年书单
- [file upload vulnerability 06] server file content detection and bypass experiment + image horse production method (based on upload-labs-14 shooting range)
- nft数字藏品系统开发搭建流程
- AcWing 1944. 记录保存(哈希,STL)
- Use of Chinese input method input event composition
猜你喜欢

木瓜移动CFO刘凡 释放数字时代女性创新力量

JS 加法乘法错误解决 number-precision

01_ Description object_ Class diagram

How does Sister Feng change to ice?

Liufan, CFO of papaya mobile, unleashes women's innovative power in the digital age

Web development model selection, who graduated from web development

Intl.NumberFormat 设置数字格式

Method of converting VOC format data set to Yolo format data set

Uncaught typeerror: cannot set property 'next' of undefined

收货地址列表展示【项目 商城】
随机推荐
No category parents插件帮你去掉分类链接中的category前缀
普通人应当如何挑选年金险产品?
[fragmentary thoughts] thoughts on wavelength, wave velocity and period
NFT digital collection app system construction
It will be too late if you don't brush the questions. The most complete bat interview questions
为WordPress相关日志插件增加自动缩略图功能
WordPress landing page customization plug-in recommendation
17.4创建多个线程、数据共享问题分析与案例代码
Smart sidebar plug-in: Mo widgets
Maximum water container
[第二章 基因和染色体的关系]生物知识概括–高一生物
Learning in Bi design 03
测试cos-html-cache静态缓存插件
AcWing 1944. 记录保存(哈希,STL)
WordPress站内链接修改插件:Velvet Blues Update URLs
统计出现次数最多的前K个字符串
How should ordinary people choose annuity insurance products?
[go] interpretation of gin source code
JVM-类加载过程
Runtime reconfiguration of etcd