-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Can't gather metrics from nvme drive #344
Comments
This is definitely weird. Can you try running
What's the output? |
Hey @jorgepimentel Thanks! |
Hi @AnalogJ sorry, I went on holiday and missed this completely. Strangely enough it started working a few days later. It started detecting the nvme and showing it in the webUI. But I had to take the container down the other day, and when I spun it back up it wasn't decting the nvme anymore with the same error I pasted on my original post. Here is the output of
EDIT: I noticed that running that same command on metal gives me exactly the same results. And in order to get correct results I have to run the command with elevated priviliges (with sudo). Running the same command in the collector container, but on /dev/sda, all works fine, so I am not sure why /dev/nvme0 would need elavated priviliges. |
Please close this. I read a bit better through the docs and I was missing:
Now with the following it detects the nvme fine:
Sorry about that. Documentation in github can get a bit confusing sometimes. |
I had this same issue. For me I had to change 2 things. I had to add SYS_ADMIN in addition to SYS_RAWIO. Also, when i did fdisk -l to view devices my nvme device appeared as /dev/nvme0n1 with 2 partitions nvme0n1p1 and nvme0n1p2 so I put in nvme0n1. However on a hunch I tried passing the device as nvme0 and then it worked. |
I also had this issue
Should be in the docker-compsoe.yml example file |
I define my nvme drive in the devices section of the docker compose file, like I did on version 0.3xx, and the nvme drive does not show up in the list on the webUI.
The Expected behaviour is for the nvme drive to show up and have metrics.
I debugged this a bit by going into the Scrutiny container and running:
scrutiny-collector-metrics run
I can see that it fails to get metrics for the nvme drive:
When trying to run that same smartctl command on the host, I get this error:
So clearly it can't get the metrics for the nvme drive. Bug in the command?!
Let me know if I can help with anything else regarding this issue.
The text was updated successfully, but these errors were encountered: