HostScope is a tool to gather and display key system statistics.
The performance information is made available on the network via multi-casting. I.e. a hostscope client can visualize the system state of multiple hosts on the network that run the hostscoped server.
Hostscope provides a large amount of system information and statistics that allow a detailed analysis of system performance and bottlenecks that may limit maximum performance. Examples of merics of hostscope are:
- Operating system metrics such as forks, context switches and interrups
- CPU load, usage (e.g. user, system, interrupts), and temperature
- Memory usage and paging performance
- Power supply states and battery charging levels
- Disk and Network I/O performance
- Per user summary information regarding CPU, I/O, memory, and faults
For a detailed description of all metrics, please refer to the help and manual pages of hostscope.
HostScope provides a bridge executable hostscopebr
for submitting data to an Influx DB. Using Grafana the data provided by hostscope can be visualized in a full custom way.
The bridge utility should be run on the same machine that runs the Influx DB server, but can also be run on another machine. It gathers data from all hostscope daemons - i.e. only one instance per network (multi-cast domain) is necessary.
Influx must be configured to receive data via UDP. For this, search for the [[udp]]
section in /etc/influxdb/influx.conf
and set a network port and the database to use. The recommended precision for the data collection is milliseconds. After restarting Influx DB start hostscopebr
with option -I <host>:<port>
to specify where Influx is listening. The argument <host>
can be omitted if the bridge is running on the same machine as Influx.
Hostscope submits its measurements with the name "hostscope" to Influx. The name of the database is chosen when setting up the UDP port in influx configuration. Every measurement is tagged with the associated hostname with a tag named "host".
For best system performance you should make sure that your system has no bottlenecks that limit its maximum performance. Hostscope will give you quick insight into system performance by providing detailed information on the key performance contributors: CPU, memory, and I/O.
For maximum performance neither of these three should be limited. For CPU a certain amount of idle should be visible. For memory make sure that no paging activity is visible. For I/O make sure that the storage devices are not 100% busy and that the network devices don't drop any packets.
Feedback concerning this software is welcome. Please send an e-mail to
thomas@maier-komor.de if you have any comments, feedback, ideas or if
you should encounter a bug.