prometheus / procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Apache License 2.0
756 stars 311 forks source link

feat(blockdevice): added sysblockdevicesize method and test #650

Open fs185143 opened 2 weeks ago

fs185143 commented 2 weeks ago

In part to support https://github.com/prometheus/node_exporter/pull/3068, I have added a new method that retrieves the value of /sys/block/<device>/size

fs185143 commented 2 weeks ago

need to add blockdevice/testdata/fixtures/sys/block/sda/size as 3750748848

edit: i believe i did this in https://github.com/prometheus/procfs/pull/650/commits/8dc60f1a18569b30c70a335511368658435c5e49