On Wed, 4 Nov 2020 at 13:06, Felix Gud <[email protected]> wrote:
> thanks for the quick reply. It seems like it works if i add in the > prometheus yml more community strings to a module. Do you know how the > performance of prometheus changes if i add all possible vlans into the > prometheus yml? Cisco switches support more than 4k vlans, so I'm not sure > if the application will lose to much performance. > It'll make no real difference to Prometheus or the snmp exporter, a time series is a time series. The question is more if your device can handle all that load. Prometheus is probably not the best tool to be tracking mac addresses connected to a switch, that's a bit more profiling than metrics. Brian > > > Brian Brazil schrieb am Mittwoch, 4. November 2020 um 12:53:25 UTC+1: > >> On Wed, 4 Nov 2020 at 11:44, Felix Gud <[email protected]> wrote: >> >>> >>> Hi, i try to get an overview of all mac-addresses connected to a cisco >>> switch. I was able to configure snmp_exporter to get the data equivalent to >>> this command: >>> 'snmpwalk -v1 -c public IPADDRESS .1.3.6.1.2.1.17.4.3.1.1' >>> But when adding a vlan i have to call the command snmpwalk -v1 -c >>> public@VLAN IPADDRESS .1.3.6.1.2.1.17.4.3.1.1 with VLAN as the vlan id. >>> Is it possible to configure the snmp_exporter to represent this command? >>> >> >> You'll need an snmp exporter module per community string value, with >> matching targets on the Prometheus side. >> >> Brian >> >> >>> >>> My generator.yml: >>> modules: >>> mac_addr: >>> walk: [dot1dTpFdbPort] # 1.3.6.1.2.1.17.4.3.1.1 >>> lookups: >>> - source_indexes: [dot1dTpFdbPort] >>> lookup: dot1dTpFdAddress >>> >>> >>> Thanks in advance. >>> >>> -- >>> 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/42634068-7718-4603-a581-786d62a44633n%40googlegroups.com >>> <https://groups.google.com/d/msgid/prometheus-users/42634068-7718-4603-a581-786d62a44633n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Brian Brazil >> www.robustperception.io >> > -- > 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/2de7d5cb-2e8d-46e9-8272-cd707a18885bn%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/2de7d5cb-2e8d-46e9-8272-cd707a18885bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Brian Brazil www.robustperception.io -- 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/CAHJKeLo7fxjwn7xqBvj6E81HCRSKDvFx%2B-8nS45t7tjnPfsV%3DA%40mail.gmail.com.

