PageRenderTime 34ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/README.rst

https://gitlab.com/132nd-etcher/glances
ReStructuredText | 278 lines | 178 code | 100 blank | 0 comment | 0 complexity | b24bcdd251cdb484e21a56366902c217 MD5 | raw file
  1. ===============================
  2. Glances - An eye on your system
  3. ===============================
  4. .. image:: https://img.shields.io/pypi/dm/glances.svg
  5. :target: https://pypi.python.org/pypi/glances#downloads
  6. :alt: Downloads this month
  7. .. image:: https://img.shields.io/github/stars/nicolargo/glances.svg
  8. :target: https://github.com/nicolargo/glances/
  9. :alt: Github stars
  10. .. image:: https://travis-ci.org/nicolargo/glances.svg?branch=master
  11. :target: https://travis-ci.org/nicolargo/glances
  12. .. image:: https://img.shields.io/pypi/v/glances.svg
  13. :target: https://pypi.python.org/pypi/Glances
  14. .. image:: https://img.shields.io/scrutinizer/g/nicolargo/glances.svg
  15. :target: https://scrutinizer-ci.com/g/nicolargo/glances/
  16. .. image:: https://api.flattr.com/button/flattr-badge-large.png
  17. :target: https://flattr.com/thing/484466/nicolargoglances-on-GitHub
  18. Follow Glances on Twitter: `@nicolargo`_ or `@glances_system`_
  19. **Glances** is a cross-platform curses-based system monitoring tool
  20. written in Python.
  21. .. image:: https://raw.github.com/nicolargo/glances/master/docs/images/screenshot-wide.png
  22. Requirements
  23. ============
  24. - ``python >= 2.6`` or ``>= 3.3`` (tested with version 2.6, 2.7, 3.3, 3.4)
  25. - ``psutil >= 2.0.0``
  26. - ``setuptools``
  27. Optional dependencies:
  28. - ``bottle`` (for Web server mode)
  29. - ``py3sensors`` (for hardware monitoring support) [Linux-only]
  30. - ``hddtemp`` (for HDD temperature monitoring support) [Linux-only]
  31. - ``batinfo`` (for battery monitoring support) [Linux-only]
  32. - ``pymdstat`` (for RAID support) [Linux-only]
  33. - ``pysnmp`` (for SNMP support)
  34. - ``zeroconf`` (for the autodiscover mode)
  35. - ``netifaces`` (for the IP plugin)
  36. - ``influxdb`` (for the InfluxDB export module)
  37. - ``statsd`` (for the StatsD export module)
  38. - ``pystache`` (for the action script feature)
  39. - ``docker-py`` (for the Docker monitoring support) [Linux-only]
  40. - ``matplotlib`` (for graphical/chart support)
  41. - ``pika`` (for the RabbitMQ/ActiveMQ export module)
  42. - ``py-cpuinfo`` (for the Quicklook CPU info module)
  43. Installation
  44. ============
  45. Glances Auto Install script
  46. ---------------------------
  47. To install both dependencies and latest Glances production ready version
  48. (aka *master* branch), just enter the following command line:
  49. .. code-block:: console
  50. curl -L http://bit.ly/glances | /bin/bash
  51. or
  52. .. code-block:: console
  53. wget -O- http://bit.ly/glances | /bin/bash
  54. *Note*: Only supported on some GNU/Linux distributions. If you want to
  55. support other distributions, please contribute to `glancesautoinstall`_.
  56. PyPI: The simple way
  57. --------------------
  58. Glances is on ``PyPI``. By using PyPI, you are sure to have the latest
  59. stable version.
  60. To install, simply use ``pip``:
  61. .. code-block:: console
  62. pip install glances
  63. *Note*: Python headers are required to install `psutil`_. For example,
  64. on Debian/Ubuntu you need to install first the *python-dev* package.
  65. For Fedora/CentOS/RHEL install first *python-devel* package.
  66. You can also install the following libraries in order to use optional
  67. features (like the Web interface):
  68. .. code-block:: console
  69. pip install bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb potsdb statsd pystache docker-py pysnmp pika py-cpuinfo
  70. Install or upgrade Glances from the Git ``develop`` repository:
  71. .. code-block:: console
  72. git clone -b develop https://github.com/nicolargo/glances.git
  73. To upgrade Glances to the latest version:
  74. .. code-block:: console
  75. pip install --upgrade glances
  76. If you need to install Glances in a specific user location, use:
  77. .. code-block:: console
  78. export PYTHONUSERBASE=~/mylocalpath
  79. pip install --user glances
  80. GNU/Linux
  81. ---------
  82. At the moment, packages exist for the following GNU/Linux distributions:
  83. - Arch Linux
  84. - Debian
  85. - Fedora/CentOS/RHEL
  86. - Gentoo
  87. - Slackware (SlackBuild)
  88. - Ubuntu
  89. - Void Linux
  90. So you should be able to install it using your favorite package manager.
  91. FreeBSD
  92. -------
  93. To install the binary package:
  94. .. code-block:: console
  95. # pkg install py27-glances
  96. To install Glances from ports:
  97. .. code-block:: console
  98. # cd /usr/ports/sysutils/py-glances/
  99. # make install clean
  100. OS X
  101. ----
  102. OS X users can install Glances using ``Homebrew`` or ``MacPorts``.
  103. Homebrew
  104. ````````
  105. .. code-block:: console
  106. $ brew install python
  107. $ pip install glances
  108. MacPorts
  109. ````````
  110. .. code-block:: console
  111. $ sudo port install glances
  112. Windows
  113. -------
  114. Install `Python`_ for Windows (Python 2.7.9+ and 3.4+ ship with pip) and
  115. then just:
  116. .. code-block:: console
  117. $ pip install glances
  118. Source
  119. ------
  120. To install Glances from source:
  121. .. code-block:: console
  122. $ wget https://github.com/nicolargo/glances/archive/vX.Y.tar.gz -O - | tar xz
  123. $ cd glances-*
  124. # python setup.py install
  125. *Note*: Python headers are required to install psutil. For example,
  126. on Debian/Ubuntu you need to install first the *python-dev* package.
  127. Puppet
  128. ------
  129. You can install Glances using ``Puppet``: https://github.com/rverchere/puppet-glances
  130. Usage
  131. =====
  132. For the standalone mode, just run:
  133. .. code-block:: console
  134. $ glances
  135. For the Web server mode, run:
  136. .. code-block:: console
  137. $ glances -w
  138. and enter the URL ``http://<ip>:61208`` in your favorite web browser.
  139. For the client/server mode, run:
  140. .. code-block:: console
  141. $ glances -s
  142. on the server side and run:
  143. .. code-block:: console
  144. $ glances -c <ip>
  145. on the client one.
  146. You can also detect and display all Glances servers available on your
  147. network or defined in the configuration file:
  148. .. code-block:: console
  149. $ glances --browser
  150. and RTFM, always.
  151. Documentation
  152. =============
  153. For complete documentation see `glances-doc`_.
  154. If you have any question (after RTFM!), please post it on the official Q&A `forum`_.
  155. Gateway to other services
  156. =========================
  157. Glances can export stats to: ``CSV`` file, ``InfluxDB``, ``OpenTSDB``,
  158. ``StatsD`` and ``RabbitMQ`` server.
  159. How to contribute ?
  160. ===================
  161. If you want to contribute to the Glances project, read this `wiki`_ page.
  162. There is also a chat dedicated to the Glances developers:
  163. .. image:: https://badges.gitter.im/Join%20Chat.svg
  164. :target: https://gitter.im/nicolargo/glances?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
  165. Author
  166. ======
  167. Nicolas Hennion (@nicolargo) <nicolas@nicolargo.com>
  168. License
  169. =======
  170. LGPL. See ``COPYING`` for more details.
  171. .. _psutil: https://github.com/giampaolo/psutil
  172. .. _glancesautoinstall: https://github.com/nicolargo/glancesautoinstall
  173. .. _@nicolargo: https://twitter.com/nicolargo
  174. .. _@glances_system: https://twitter.com/glances_system
  175. .. _Python: https://www.python.org/getit/
  176. .. _glances-doc: https://github.com/nicolargo/glances/blob/master/docs/glances-doc.rst
  177. .. _forum: https://groups.google.com/forum/?hl=en#!forum/glances-users
  178. .. _wiki: https://github.com/nicolargo/glances/wiki/How-to-contribute-to-Glances-%3F