Update docs for the new IRQ plugin

This commit is contained in:
Nicolargo 2016-08-22 09:14:41 +02:00
parent b5529925e9
commit 6517df9f73
5 changed files with 20 additions and 4 deletions

1
NEWS
View File

@ -19,6 +19,7 @@ Enhancements and new features:
* Add Application Monitoring Process plugin (issue #780) * Add Application Monitoring Process plugin (issue #780)
* Add a new "Ports scanner" plugin (issue #734) * Add a new "Ports scanner" plugin (issue #734)
* Add a new IRQ monitoring plugin (issue #911)
* Improve IP plugin to display public IP address (issue #646) * Improve IP plugin to display public IP address (issue #646)
* CPU additionnal stats monitoring: Context switch, Interrupts... (issue #810) * CPU additionnal stats monitoring: Context switch, Interrupts... (issue #810)
* Filter processes by others stats (username) (issue #748) * Filter processes by others stats (username) (issue #748)

BIN
docs/_static/irq.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -30,6 +30,7 @@ Legend:
disk disk
fs fs
folders folders
irq
sensors sensors
ps ps
monitor monitor

14
docs/aoa/irq.rst Normal file
View File

@ -0,0 +1,14 @@
.. _irq:
IRQ
===
.. image:: ../_static/irq.png
Glances displays the top 5 interrupts rate. This plugin is only available on
GNU/Linux machine (stats are grabbed from the /proc/interrupts file).
How to read the informations:
* The first Column is the IRQ number / name
* The Second column says how many times the CPU core has been interrupted during the last second

View File

@ -56,12 +56,12 @@ class Plugin(GlancesPlugin):
def update(self): def update(self):
"""Update the IRQ stats""" """Update the IRQ stats"""
if not LINUX: # only available on GNU/Linux
return []
# Reset the list # Reset the list
self.reset() self.reset()
if not LINUX: # only available on GNU/Linux
return self.stats
if self.input_method == 'local': if self.input_method == 'local':
with open('/proc/interrupts') as irq_proc: with open('/proc/interrupts') as irq_proc:
time_since_update = getTimeSinceLastUpdate('irq') time_since_update = getTimeSinceLastUpdate('irq')
@ -105,7 +105,7 @@ class Plugin(GlancesPlugin):
# Init the return message # Init the return message
ret = [] ret = []
if not LINUX: # only available on GNU/Linux if not LINUX: # only available on GNU/Linux
return ret return ret
# Only process if stats exist and display plugin enable... # Only process if stats exist and display plugin enable...