collected metric lustre_job_read_samples_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_read_minimum_size_bytes label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > gauge: was collected before with the same name and label values
collected metric lustre_job_read_maximum_size_bytes label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > gauge: was collected before with the same name and label values
collected metric lustre_job_read_bytes_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_write_samples_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_write_minimum_size_bytes label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > gauge: was collected before with the same name and label values
collected metric lustre_job_write_maximum_size_bytes label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > gauge: was collected before with the same name and label values
collected metric lustre_job_write_bytes_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"getattr" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"setattr" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"statfs" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"sync" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"punch" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"destroy" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"create" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"get_info" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"set_info" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
collected metric lustre_job_stats_total label:<name:"component" value:"ost" > label:<name:"jobid" value:"" > label:<name:"operation" value:"quotactl" > label:<name:"target" value:"public1-OST0004" > counter: was collected before with the same name and label values
source="log.go:172"
we can see the jobid is empty, so I did some tests and found those above errs will occured when jobid source string is in next cases:
"job_id: loop1500"
"job_id: loop1400"
new test added for procfs_test.go: TestGetJobNum()
we found a bug when pasing jobid, it will make luster_exporter not collect data correctlly, errs occurd:
ERRO[0723] error gathering metrics: 18 error(s) occurred:
we can see the jobid is empty, so I did some tests and found those above errs will occured when jobid source string is in next cases:
"job_id: loop1500" "job_id: loop1400"
new test added for procfs_test.go: TestGetJobNum()
testString = "job_id: loop1500" expected = "loop1500"
[ziyht@localhost lustre_exporter]$ make
--- FAIL: TestGetJobNum (0.00s) procfs_test.go:62: Retrieved an unexpected Job ID. Expected: loop1500, Got: FAIL FAIL github.com/HewlettPackard/lustre_exporter/sources 0.006s make: *** [test] 错误 1