-
Notifications
You must be signed in to change notification settings - Fork 262
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
sFlow Probe Plugin - ifindex, ifname and host missing at InMon sFlow RT Prometheus exporter #718
Comments
Hi Diego ( @DiegoRussi ), I see you are using 1.7.5. Any chance you can give a try to master code here in GitHub and see whether that solves at least the Paolo |
Appreciate your quick response! I will surely try out master May bad that was wrong, I edited that bit, there was a misunderstanding and we are really having the sfprobe_agentip correctly:
|
Hi @paololucente , In short: ifindex, ifname and host are missing when using InMon sFlow RT Prometheus exporter. That happened in two different OSs for now:
As you mentioned. I tested the latest pmacct and host field is still missing: pmacct command: pmacct sfprobe config:
Prometheus output:
Already tried below but no luck yet:
I would like to configure ifname and ifindex per interface config. Is this configuration correct or am I missing something? Thanks in advance! |
Hi Diego ( @DiegoRussi ), Oh, i see, you would like the Wrt the plugins: sfprobe[foo] That should work allright. Can you give it a try and let me know? In short, I can confirm that Paolo |
Hi Paolo (@paololucente) Actually, the I am reaching out about your last feedback using the configuration below:
That doesn't change ifindex at InMon/Prometheus collectors, I always see So far, ifindex, ifname and host are missing. Configuration tested in both ubuntu 22.04.2 kernel 5.15.0-75-generic & yocto based Linux:
|
Hi Diego ( @DiegoRussi ), Still related to the Paolo |
Hi Paolo (@paololucente)
This ubuntu test above tested the latest pmacct and ifindex does not show up. The test you mentioned was the sfprobe plugin along with InMon sFlow RT Prometheus exporter or another tool? Appreciate your attention and help on this one. |
Hi Diego ( @DiegoRussi ), This was pmacctd / sfprobe against sflowtool, ie. (setting ifindex to 100 and agent ip to 100.100.100.100):
|
Hi Paolo (@paololucente) Thanks, I confirm we could see the ifindex at sflowtool. But the issue happens at InMon sFlow RT + Prometheus exporter - we cannot see ifindex. We could conclude that exporting both interfaces ethX/wwanX, on the Prometheus tool the ifindex/ifname/ifspeed/type are consistently reported as the same but they are not. Thanks. |
Hi Diego ( @DiegoRussi ), For sure the support for this in pmacct is rudimentary and i can confirm that at the moment the only thing that could change, basing on the config, is ifindex (as you can see in sflowtool); the changing ifindex i would expect to see it reflected also in the other tool sFlow-RT -- unless this tool derives information in some other way, ie. because the name is the same then it must be the same interface. The rest is all fixed, name, speed, type; we could think to add one or multiple config knob where these aspects can be defined, and hence i guess see them reflected in the sFlow samples. Paolo |
Description
What's the issue?
Exported sflows don't have host or ifname fields @ InMon sFlow RT Prometheus exporter
pmacctd config:
sflows received don't have host or ifname fields:
We are trying to figure this out based on results from a Juniper MX router that shows the same source IP Address defined for all flows and interfaces:
Juniper sFlow config:
We tried using
pcap_ifindex: sys
but nothing new so far.Any hints on this are appreciated.
Version
Promiscuous Mode Accounting Daemon, pmacctd 1.7.5-git (20200510-00)
NetFlow Accounting Daemon, nfacctd 1.7.5-git (20200510-00)
Libs:
libpcap version 1.9.1 (with TPACKET_V3)
System:
Linux 5.15.106-yocto-standard #1 SMP PREEMPT Wed Apr 5 09:25:02 UTC 2023 x86_64
Compiler:
gcc 9.5.0
The text was updated successfully, but these errors were encountered: