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

input.node_exporter采集的指标值不完整 #1122

Open
lhj18054979020 opened this issue Dec 31, 2024 · 3 comments
Open

input.node_exporter采集的指标值不完整 #1122

lhj18054979020 opened this issue Dec 31, 2024 · 3 comments

Comments

@lhj18054979020
Copy link

Relevant config.toml

cat conf/input.node_exporter/exporter.toml 
collectors=["--path.rootfs=/", "--collector.cpu"]
#collectors=[]

Logs from categraf

2024/12/31 15:56:10 agent.go:38: I! agent starting
2024/12/31 15:56:10 metrics_agent.go:319: I! input: local.node_exporter started
2024/12/31 15:56:10 agent.go:46: I! [*agent.MetricsAgent] started
2024/12/31 15:56:10 agent.go:49: I! agent started
2024/12/31 15:56:10 collector.go:189: I! collector succeeded name filenotify duration_seconds 6.8453e-05
2024/12/31 15:56:10 collector.go:189: I! collector succeeded name cpu duration_seconds 0.005472773
1735631770 15:56:10 node_filenotify agent_hostname=wget file_name=/etc/passwd 0
1735631770 15:56:10 node_filenotify agent_hostname=wget file_name=/etc/shadow 0
1735631770 15:56:10 node_scrape_collector_duration_seconds agent_hostname=wget collector=filenotify 6.8453e-05
1735631770 15:56:10 node_scrape_collector_success agent_hostname=wget collector=filenotify 1
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=user 62541.4
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=nice 0.58
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=system 10873.39
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=idle 3.592558415e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=iowait 359.36
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=softirq 788.3
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=18 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=18 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=18 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=user 62507.17
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=nice 0.49
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=system 10211.16
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=idle 3.592473004e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=iowait 248.55
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=softirq 880.84
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=60 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=60 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=60 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=user 63867.75
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=nice 0.51
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=system 11577.86
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=idle 3.592150652e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=iowait 401.06
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=softirq 1074.54
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=22 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=22 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=22 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=user 61962.8
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=nice 0.43
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=system 9537.52
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=idle 3.592837998e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=iowait 378.85
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=softirq 342.67
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=2 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=2 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=2 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=user 63922.62
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=nice 1.26
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=system 10650.68
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=idle 3.592293863e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=iowait 278.21
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=softirq 804.1
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=50 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=50 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=50 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=user 61983.47
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=nice 0.26
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=system 10765.75
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=idle 3.592610999e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=iowait 435.49
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=softirq 352.68
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=13 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=13 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=13 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=user 57131.37
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=nice 0.18
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=system 9186.12
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=idle 3.593371019e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=iowait 279.59
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=softirq 262.96
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=36 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=36 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=36 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=user 55986.94
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=nice 0.36
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=system 8395.96
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=idle 3.593598548e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=iowait 261.03
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=softirq 268.62
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=41 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=41 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=41 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=user 55656.08
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=nice 0.22
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=system 8607.94
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=idle 3.593594279e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=iowait 276.26
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=softirq 262.29
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=42 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=42 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=42 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=user 61896.08
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=nice 0.47
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=system 8779.63
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=idle 3.592765172e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=iowait 255.62
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=softirq 742.65
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=57 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=57 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=57 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=user 61611.61
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=nice 0.14
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=system 8296.61
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=idle 3.592757331e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=iowait 344.93
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=softirq 235.77
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=0 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=0 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=0 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=user 65488.86
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=nice 0.52
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=system 11567.8
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=idle 3.592009785e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=iowait 399.93
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=softirq 783.88
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=27 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=27 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=27 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=user 65389.41
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=nice 0.98
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=system 10705.51
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=idle 3.59229176e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=iowait 401.12
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=softirq 570.97
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=26 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=26 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=26 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=user 56056.61
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=nice 0.27
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=system 8543.6
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=idle 3.593537921e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=iowait 268.46
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=softirq 286.43
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=47 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=47 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=47 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=user 60773.38
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=nice 0.68
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=system 10062.23
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=idle 3.592910546e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=iowait 418.17
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=softirq 266.03
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=10 mode=steal 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=10 mode=user 0
1735631770 15:56:10 node_cpu_guest_seconds_total agent_hostname=wget cpu=10 mode=nice 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=user 62418.08
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=nice 0.46
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=system 9895.22
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=idle 3.592646312e+07
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=iowait 328.35
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=irq 0
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=softirq 782.89
1735631770 15:56:10 node_cpu_seconds_total agent_hostname=wget cpu=17 mode=steal 0

System info

categraf-slim-v0.3.86-linux-amd64

Docker

No response

Steps to reproduce

使用二进制版本部署categraf开启Nodeexport插件用于采集相关信息,开启--collector.cpu后采集Nodeexport相关指标值不完整,有缺失

Expected behavior

预期应该出现# HELP node_cpu_frequency_max_hertz Maximum CPU thread frequency in hertz.

TYPE node_cpu_frequency_max_hertz gauge

node_cpu_frequency_max_hertz{cpu="0"} 3e+09
node_cpu_frequency_max_hertz{cpu="1"} 3e+09
node_cpu_frequency_max_hertz{cpu="10"} 3e+09
node_cpu_frequency_max_hertz{cpu="11"} 3e+09
node_cpu_frequency_max_hertz{cpu="12"} 3e+09
这个指标值

Actual behavior

实际只采集到了node_cpu_core_throttles_total,node_cpu_seconds_total,node_cpu_guest_seconds_total等部分指标值

Additional info

No response

@kongfei605
Copy link
Collaborator

你node exporter中开启了哪些配置,加到categraf的input.node_exporter下就行

@lhj18054979020
Copy link
Author

我得Nodeexport是使用默认的配置,如果想继续沿用Nodeexport的默认配置,input.node_exporter中的exporter.toml需要怎么写?

@kongfei605
Copy link
Collaborator

我得Nodeexport是使用默认的配置,如果想继续沿用Nodeexport的默认配置,input.node_exporter中的exporter.toml需要怎么写?

你可以先看看node exporter默认配置中有哪些, 比如ps 看看node exporter参数。 这个input.node_exporter配置跟node exporter是一样的, 只不过node exporters是参数形式 。 你想要的这几个指标,添加 --collector.cpu.info 。

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

2 participants