Hi Brian,

I am running 1.2.2 yes.

Regarding strace, would you have any keyword i could grep to identify the 
permission issue ? the output is enormous and though i can see some error 
when i grep on "file" i am not sure those would explain why I receive 
metric for one disk and not the other one.

here is an example of the output : 
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu13/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu13/thermal_throttle/package_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu14/thermal_throttle/package_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu15/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu2/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu3/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26439] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu4/thermal_throttle/package_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu5/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu6/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu7/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu7/thermal_throttle/package_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu8/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu8/thermal_throttle/package_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu9/thermal_throttle/core_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26439] openat(AT_FDCWD, 
"/sys/devices/system/cpu/cpu9/thermal_throttle/package_throttle_count", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 26434] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26441] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26438] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26445] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26438] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26438] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26434] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26433] <... openat resumed> )      = -1 ENOENT (No such file or 
directory)
[pid 26445] <... newfstatat resumed> 0xc000606858, 0) = -1 ENOENT (No such 
file or directory)

also as explained, it just can't get the info on a give disk.

On Saturday, August 14, 2021 at 7:22:05 PM UTC+7 Brian Candler wrote:

> I presume you're running the latest version 1.2.2?
>
> Maybe strace will help you understand what's going on:
>
> strace -f -s128 -p <pid-of-node-exporter> 2>strace.out
>
> You can see which files it's trying to access and whether it's getting 
> permission errors.
>
> FWIW, I just tried running node_exporter as root and normal users, and I 
> got 3906 and 3900 lines of metrics respectively.  The only ones which were 
> missing were:
>
> # HELP node_rapl_core_joules_total Current RAPL core value in joules
> # TYPE node_rapl_core_joules_total counter
> node_rapl_core_joules_total{index="0"} 79345.889568
> # HELP node_rapl_package_joules_total Current RAPL package value in joules
> # TYPE node_rapl_package_joules_total counter
> node_rapl_package_joules_total{index="0"} 129630.134976
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/346e39db-d3e2-4451-bb5a-8bc94ceb0439n%40googlegroups.com.

Reply via email to