#glances # A very good performance monitoring tool

Source: Internet
Author: User
Tags influxdb statsd


Because Nagios is too complex, the previous Zabbix has emerged as a condition of knowledge. I just want to find a tool that can collect data for analysis in real time, glances is undoubtedly the best choice.

In addition, when I was looking for tools, I found a relatively good simple monitoring tool--linux dashboard. On GitHub, you can go to research.


Glances installation is very simple, not only support the display of data directly on the terminal, but also support the display on the web, in addition to monitoring the load of the machine, but also very easy to monitor the load of the specified server (provided that the glances is installed and started in server mode glances). It even provides a programming interface for rest and XML-RPC, which allows data to be saved in csv,html or influxdb and STATSD


Website: http://nicolargo.github.io/glances/

Documentation (thanks to the author for providing such high-quality documentation and procedures): http://glances.readthedocs.org/en/latest/glances-doc.html

References on GitHub (installation manuals, API manuals, and the like): Https://github.com/nicolargo/glances


I installed it on my ubuntu14.04 (using PIP):

Apt-get Install Python-pip build-essential python-devpip install glances bottle #如果你的linux上缺少bottle这个模块, will not be displayed on the Web

This can be updated as follows:

Pip Install--upgrade glances


How to use:

Stand-alone operation:

Glances

You can press Q to exit


Show in the form of a Web:

Glances-w

Open the 61208 port of your own machine:


For the C/s mode, see: Http://glances.readthedocs.org/en/latest/glances-doc.html#client-server-mode


About programming Support:

Start in server mode on the monitored server first

Glances-s

Write this program on another machine with Python (also native localhost):

$ vi test.py#!/usr/bin/pythonimport xmlrpclibs = xmlrpclib. Serverproxy (' http://10.20.10.71:61209 ') #注意改为被监控的服务器的IP print S.getsystem ()

After execution:

For the available XML-RPC functions, see: Https://github.com/nicolargo/glances/wiki/The-Glances-2.x-API-How-to


The author also provides a Docker image for us to test: https://github.com/nicolargo/glances/wiki/Install-and-test-Glances-DEVELOP-version

Author another detailed document: Https://github.com/nicolargo/glances/blob/master/docs/glances-doc.rst


If you want to store the data for use by other services, it can be saved as csv,html or saved in Influxdb and STATSD, or as a reference:

Https://github.com/nicolargo/glances/blob/master/docs/glances-doc.rst#gateway-to-others-services


In general, this tool is very lightweight and very useful and will be integrated into my personal project.

This project is using the LGPL protocol.


Reference:

Http://www.vpsee.com/2013/07/a-new-system-monitoring-tool-glances-installation-and-usage

Https://github.com/nicolargo/glances



#glances # A very good performance monitoring tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.