HewlettPackard / lustre_exporter

Prometheus exporter for use with the Lustre parallel filesystem
Apache License 2.0
36 stars 51 forks source link

inode metrics #72

Closed knweiss closed 7 years ago

knweiss commented 7 years ago

These two metrics could be improved:

# HELP lustre_file_capacity The maximum number of inodes (objects) the filesystem can hold
# TYPE lustre_file_capacity gauge
lustre_file_capacity{ost="lustre-OST0000"} 3.047808e+07
# HELP lustre_files_free_now The number of inodes (objects) available
# TYPE lustre_files_free_now gauge
lustre_files_free_now{ost="lustre-OST0000"} 3.0477046e+07

Sorry for not catching this earlier.

joehandzik commented 7 years ago

We could definitely change from "file" to "inode", We were trying to minimize how much we changed the renaming of the metrics, but I agree that using "inode" makes the name more clear.

I could go either way on the other two problems. "lustre_inode_free_now" sounds a little weird to me, but that's because I'm trying to read it as a pseudo-sentence in my mind rather than reading the "inode" portion as an identifier.

We used the "_now" to maintain some consistency with the node_exporter (there's a metric that they have that uses "_now" as well).

@roclark, thoughts?