Skip to content
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

Wrong values for disk usage on windows #14

Open
w00dst0ck opened this issue Sep 13, 2023 · 1 comment
Open

Wrong values for disk usage on windows #14

w00dst0ck opened this issue Sep 13, 2023 · 1 comment

Comments

@w00dst0ck
Copy link

I've compiled your exporter on windows with go build and it compiled without any error.
Also it's possible to execute the resulting binary disk_usage_exporter.exe.

E:\disk_usage_exporter-0.4.0>disk_usage_exporter.exe -m file -p z:\
time="2023-09-13T10:48:10+02:00" level=info msg="Disk Usage Prometheus Exporter <<< filled in by build >>>\tbuild date: <<< filled in by build >>>\tsha1: <<< filled in by build >>>\tGo: go1.21.1\tGOOS: windows\tGOARCH: amd64"
time="2023-09-13T10:48:18+02:00" level=info msg="Analysis done"
time="2023-09-13T10:48:19+02:00" level=info msg="Stored stats in file ./disk-usage-exporter.prom"
time="2023-09-13T10:48:19+02:00" level=info msg="Done - exiting."

However, the directory and file sizes in the output do not match the real sizes in the file system.

# TYPE node_disk_usage_level_1_bytes gauge
node_disk_usage_level_1_bytes{path="e:\\Install"} 12288
node_disk_usage_level_1_bytes{path="e:\\temp"} 1.3725696e+07

image
image

@w00dst0ck
Copy link
Author

As a supplement.
Files are returned with the size 0.

node_disk_usage_bytes{path="c:\\temp\\disk_usage_exporter-0.4.0\\LICENSE"} 0
node_disk_usage_bytes{path="c:\\temp\\disk_usage_exporter-0.4.0\\Makefile"} 0
node_disk_usage_bytes{path="c:\\temp\\disk_usage_exporter-0.4.0\\README.md"} 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant