GSI-HPC / lustre_exporter

Prometheus exporter for use with the Lustre parallel filesystem
GNU General Public License v3.0
18 stars 20 forks source link

Fix Test Stage #6

Closed gabrieleiannetti closed 3 years ago

gabrieleiannetti commented 3 years ago

With the Lustre OST metrics update for version 2.12, it breaks the test stage:

$ make test
>> running tests
--- FAIL: TestCollector (0.35s)
    lustre_exporter_test.go:1775: The following OST metrics were not found: [{Name:lustre_available_kilobytes Help:Number of kilobytes readily available in the pool Type:1 Labels:[{Name:component Value:ost} {Name:target Value:lustrefs-OST0000}] Value:4.7029274624e+10 Parsed:false} {Name:lustre_inodes_free Help:The number of inodes (objects) available Type:1 Labels:[{Name:component Value:ost} {Name:target Value:lustrefs-OST0000}] Value:4.5927028e+07 Parsed:false} {Name:lustre_inodes_maximum Help:The maximum number of inodes (objects) the filesystem can hold Type:1 Labels:[{Name:component Value:ost} {Name:target Value:lustrefs-OST0000}] Value:4.5927284e+07 Parsed:false} {Name:lustre_free_kilobytes Help:Number of kilobytes allocated to the pool Type:1 Labels:[{Name:component Value:ost} {Name:target Value:lustrefs-OST0000}] Value:4.7029276672e+10 Parsed:false}]
FAIL
FAIL    github.com/GSI-HPC/lustre_exporter      0.355s
ok      github.com/GSI-HPC/lustre_exporter/sources      (cached)
FAIL
make: *** [Makefile:29: test] Error 1

Test stage needs to be fixed.

gabrieleiannetti commented 3 years ago

Fixed.

The proc and sys directory needs to be updated for providing local metrics.