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

"Number of files by Instance" metrics doesn't shows current state #1684

Closed
AdamStawarz opened this issue Feb 22, 2022 · 3 comments · Fixed by #1686
Closed

"Number of files by Instance" metrics doesn't shows current state #1684

AdamStawarz opened this issue Feb 22, 2022 · 3 comments · Fixed by #1686
Labels
bug Something isn't working right

Comments

@AdamStawarz
Copy link

Installation details
Panel Name: Number of files by Instance
Dashboard Name: OS Metrics
Scylla-Monitoring Version: 3.10.0
Scylla-Version: 2021.1

Number of files by Instance is always different from the actual value on node and does not change.
I've already checked it on few clusters.

image

[~]$ sudo find /var/lib/scylla/ | wc -l
364
[~]$ sudo lsof /var/lib/scylla/ | wc -l
46
[~]$ sudo lsof | wc -l
4153
@AdamStawarz AdamStawarz added the bug Something isn't working right label Feb 22, 2022
@AdamStawarz
Copy link
Author

@amnonh @tarzanek

@fee-mendes
Copy link
Member

The formula should likely be:
sum(node_filesystem_files{mountpoint="$mount_point", instance=~"$node"} - node_filesystem_files_free{mountpoint="$mount_point", instance=~"$node"}) by ([[by]])

node_filesystem_files basically describes the maximum number of inodes, whereas node_filesystem_files_free is the number of unallocated inodes. total - free == used

@fee-mendes
Copy link
Member

@AdamStawarz also keep in mind that there is no relation between lsof and the number of inodes in a filesystem. So only the first find command is what's of interest in your output. ;-)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants