Prometheus get full subnet /24 moniter

102 views
Skip to first unread message

Khedor Tahesh

unread,
Feb 27, 2025, 11:08:33 AMFeb 27
to sFlow-RT
how i can get dst mask  /24  and src mask /24

Peter Phaal

unread,
Feb 27, 2025, 11:18:03 AMFeb 27
to sFlow-RT
Use the following tokens in your Prometheus scrape_config, https://blog.sflow.com/2019/10/flow-metrics-with-prometheus-and-grafana.html

key: ['mask:ipsource:24','mask:ipdestination:24']
label: ['src','dst']

Defining Flows describes the full set of options available to build Prometheus flow metrics.

Khedor Tahesh

unread,
Feb 27, 2025, 11:31:52 AMFeb 27
to sFlow-RT
thanke you 

Khedor Tahesh

unread,
Aug 8, 2025, 4:43:48 AMAug 8
to sFlow-RT
can sflow show all vlan traffic whit cisco n9k !

--
You received this message because you are subscribed to the Google Groups "sFlow-RT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sflow-rt+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sflow-rt/3b456101-ac8c-4a62-82aa-32383d116e38n%40googlegroups.com.

Peter Phaal

unread,
Aug 8, 2025, 12:52:24 PMAug 8
to sFlow-RT
The Cisco N9K should fill in the sFlow extended_switch structure, so you can add vlansource and / or vlandestination to your flow key, see Forwarding Information. If you are monitoring a trunk port then the VLAN can be decoded from the Ethernet header, see Ethernet
Reply all
Reply to author
Forward
0 new messages