Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

inode metrics #72

Closed
knweiss opened this issue May 17, 2017 · 1 comment
Closed

inode metrics #72

knweiss opened this issue May 17, 2017 · 1 comment

Comments

@knweiss
Copy link

knweiss commented May 17, 2017

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
  • Inconsistency: "file" vs "files".
  • Why "files" and not "inodes" anyway?
  • IMHO the "_now" should be removed as it is completely redundant. (It appears
    in some other metrics, too.)

Sorry for not catching this earlier.

@joehandzik
Copy link
Contributor

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?

joehandzik pushed a commit that referenced this issue May 17, 2017
Addresses issue #72 by removing plurality, moving from file to inode for naming purposes, and removing all cases of appending _now to metrics to denote instantaneous values.

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
joehandzik pushed a commit that referenced this issue May 17, 2017
Addresses issue #72 by removing plurality, moving from file to inode for naming purposes, and removing all cases of appending _now to metrics to denote instantaneous values.

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
joehandzik pushed a commit that referenced this issue May 17, 2017
Addresses issue #72 by removing plurality, moving from file to inode for naming purposes, and removing all cases of appending _now to metrics to denote instantaneous values.

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
joehandzik pushed a commit that referenced this issue May 18, 2017
Addresses issue #72 by removing plurality, moving from file to inode for naming purposes, and removing all cases of appending _now to metrics to denote instantaneous values.

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants