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

There is no conntrack insert_failed metrics in node_exporter #3184

Open
DesireWithin opened this issue Nov 14, 2024 · 1 comment
Open

There is no conntrack insert_failed metrics in node_exporter #3184

DesireWithin opened this issue Nov 14, 2024 · 1 comment

Comments

@DesireWithin
Copy link

Hello,

I don't hava nf_conntrack_stat_insert_failed (and other metrics).

I have read related issue #1155 and related #1093 and prometheus/procfs code.
#1155 and the code require there is a stat file /proc/net/stat/nf_conntrack on the procfs
and 1093 require CAP_NET_ADMIN privilege which is already closed.

My Linux don't have /proc/net/stat/nf_conntrack, I checked the following kernels:

  • 4.15.0-213-generic Ubuntu 18.04 LTS
  • 5.4.0-125-generic Ubuntu 20.04.1 LTS
  • 5.15.0-76-generic Ubuntu 22.04.2 LTS (Jammy Jellyfish)

They don't have CONFIG_NF_CONNTRACK_PROCFS in /boot/config-xx

However there is an exception, I don't know why, perhaps deviated with this issue.

图片

Node_exporter version is 1.6.1 , command line is

in k8s:
- --web.listen-address=:9100                              
- --web.config.file=/etc/node-exporter/config/config.yaml 
- --path.rootfs=/host                                     
- --no-collector.ipvs                                     
- --collector.processes                   
in host:
 --collector.processes --collector.logind --log.level=error --collector.systemd --collector.tcpstat --collector.textfile.directory=/opt/node_exporter/metrics --web.listen-address=:9100                

So, what should I do if I don't have /proc/net/stat/nf_conntrack? Should I use a different collector(like this), or a textfile collector?

@mrnonz
Copy link

mrnonz commented Nov 16, 2024

Did you try with latest version? v1.8.2 https://github.com/prometheus/node_exporter/releases/tag/v1.8.2

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