home-assistant-ecosystem / python-glances-api

Python API for interacting with Glances
MIT License
4 stars 8 forks source link

Add diskio sensors for Home Assistant (in bytes/second) #37

Closed wittypluck closed 6 months ago

wittypluck commented 6 months ago

The aim of this PR is to add diskio sensors for Hone Assistant. The unit is in bytes/second :

read = read_bytes / time_since_update
write = write_bytes / time_since_update

The unit test includes a sample with two disks. Once the library is released I will create a PR in Home Assistant to use these new sensors.

Glances documentation

Note: diskio can be configured server side in glances.conf to limit the number of disks, or it can also be disabled completely with

[diskio]
disable=True
wittypluck commented 6 months ago

Thank you!