Netdata---Linux system performance real-time monitoring platform deployment record

Reprinted: https://www.cnblogs.com/kevingrace/p/7300191.html

Generally speaking, as a Linux SA, it is necessary to master a special system monitoring tool in order to know the occupancy of system resources at any time. Let's introduce the next real-time monitoring tool for Linux performance - Netdata, which is a real-time performance monitoring tool for Linux systems, which displays the real-time running status of the system and applications (including cpu, memory, hard disk input/output, network, etc.) in a web-based visualization. linux performance data). Netdata's web frontend is very responsive and doesn't require a Flash plugin. The UI is clean and maintains the characteristics that Netdata should have. At first glance, you can see a lot of graphs, luckily most of the commonly used graph data (like CPU, RAM, network, and hard disk) are at the top. If you want to drill down into the graphical data, you just need to swipe down the scroll bar, or click on an item in the menu on the right. Netdata can also control the display, reset, and zoom of the graph through the buttons on the bottom right of each graph. Netdata document address: https://github.com/firehol/netdata/wiki

Netdata uses visual means to show the smallest details of the monitored person. In this way, you can clearly understand the status of the linux system and applications at this time.

1
2
3
4
5
6
7
优美的界面:bootstrap框架下的控制界面
自定义的控制界面:你可以使用简单的HTML代码去自定义控制界面(不需要使用javascript)
极其的快速而高效:程序使用C进行编写(默认安装下,预计只有2%的单核CPU使用率和少许的内存使用率)
零配置:你只需要去安装它,接着它就会自动地监测一切数据
零依赖:它的静态网络文件和网络接口拥有自己的网络服务器
可扩展:用它自身的插件API(可以使用许多方式来制作它的插件,从 bash 到node.js),你可以检测任何可以衡量的数据。
可嵌入:它可以在任何Linux内核可以运行的地方运行

Monitoring content : The following is the content currently detected by Netdata (most do not need to be configured, and monitoring can be started after installation)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
1.CPU的使用率,中断,软中断和频率(总量和每个单核)
2.RAM,互换和内核内存的使用率(包括KSM和内核内存deduper)
3.硬盘输入/输出(每个硬盘的带宽,操作,整理,利用等)
4.IPv4网络(数据包,错误,分片):
TCP:连接,数据包,错误,握手
UDP:数据包,错误
广播:带宽,数据包
组播:带宽,数据包
5.Netfilter /iptables  Linux防火墙(连接,连接跟踪事件,错误等)
6.进程(运行,受阻,分叉,活动等)
7.NFS文件服务器,v2,v3,v4(输入/输出,缓存,预读,RPC调用)
8.网络服务质量(唯一一个可实时可视化网络状况的工具)
9.应用程序,通过对进程树进行分组(CPU,内存,硬盘读取,硬盘写入,交换,线程,管道,套接字等)
10.Apache Web服务器状态(v2.2, v2.4)
11.Nginx Web服务器状态
12.Mysql数据库(多台服务器,单个显示:带宽,查询 /s , 处理者,锁,问题,临时操作,连接,二进制日志,线程,innodb引擎等)
13.ISC Bind域名服务器(多个服务器,单个显示:客户,请求,查询,更新,失败等)
14.Postfix邮件服务器的消息队列(条目,大小)
15.Squid代理服务器(客户带宽和请求,服务带宽和请求)
16.硬件传感器(温度,电压,风扇,电源,湿度等)
17.NUT UPSes(负载,充电,电池电压,温度,使用指标,输出指标)
可以监测任意数量的SNMP服务,不过你需要进行配置,还可以对此软件进行扩展,可以使用任何语言编写插件,以此来从任何来源收集数据

The following briefly records the deployment process of Netdata (under Cetnos):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
netdata下载地址:http: //firehol .org /download/netdata/releases/v1 .0.0/
autogen下载地址:http: //ftp .gnu.org /gnu/autogen/5 .11.8/
 
[root@monit ~] # yum install zlib-devel gcc make git autoconf autogen guile-devel automake pkgconfig
[root@monit ~] # rpm -ivh autogen-5.11.8-5.x86_64.rpm --force                    //yum安装autogen可能会报错说没有此包,那么就单独下载autogen的rpm包进行安装
[root@monit ~] # tar -jvxf netdata-1.0.0.tar.bz2
[root@monit ~] # cd netdata-1.0.0
[root@monit netdata-1.0.0] # ./netdata-installer.sh --install /data
 
按照上面命令执行后的提示进行安装,安装后,netdata会自动重启。端口为19999
[root@monit ~] # ps -ef|grep netdata
netdata  10976     1  0 17:01 ?        00:00:03  /data/netdata/usr/sbin/netdata
netdata  10982 10976  0 17:01 ?        00:00:00  /bin/bash  /data/netdata/usr/libexec/netdata/plugins .d /tc-qos-helper .sh 1
netdata  10984 10976  0 17:01 ?        00:00:07  /bin/bash  /data/netdata/usr/libexec/netdata/plugins .d /charts .d.plugin 1
root     10986 10976  0 17:01 ?        00:00:04  /data/netdata/usr/libexec/netdata/plugins .d /apps .plugin 1
netdata  29395 10982  0 17:22 ?        00:00:00  sleep  0.998
netdata  29401 10984  0 17:22 ?        00:00:00  sleep  0.2
root     29403 25980  0 17:22 pts /0     00:00:00  grep  netdata
[root@monit ~] # lsof -i:19999
COMMAND   PID    USER   FD   TYPE DEVICE SIZE /OFF  NODE NAME
netdata 10976 netdata    3u  IPv6 499147      0t0  TCP *:dnp-sec (LISTEN)
 
启动与关闭
启动: /data/netdata/usr/sbin/netdata
关闭:killall netdata

Access to Netdata, http://localhost:19999 The dynamic rendering of the operation is as follows:

****************When you find that your talent can't support your ambition, please calm down and study***************

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325961798&siteId=291194637