[prometheus-users] Re: SNMP Exporter - Gathering MAC and IP per port

2024-07-23 Thread 'Brian Candler' via Prometheus Users
> The Cisco switches I am using require you to specify the VLAN context to retrieve the data I'm not sure I follow. Clearly, you "retrieve" the data simply by walking the relevant SNMP MIB, for which you need to specify nothing more than the OID to walk. Are you saying that Cisco have a proprie

Re: [prometheus-users] Re: SNMP Exporter - Gathering MAC and IP per port

2024-07-23 Thread Ben Kochie
SNMP has the concept of a "Context Name" that is part of the walk, in addition to the community and other security parameters. This can be included in the auth section of the config[0], or as a URL parameter in the latest release[1]. [0]: https://github.com/prometheus/snmp_exporter/tree/main/gene

Re: [prometheus-users] Re: SNMP Exporter - Gathering MAC and IP per port

2024-07-23 Thread 'Brian Candler' via Prometheus Users
Ah right - so we're talking about SNMP v3 context then, not "VLAN context"? As I understand it, the SNMP context gives you a selected subset of the OID tree. From RFC 5343: * An SNMP context is a collection of management information accessible by an SNMP entity. An item of management informati

[prometheus-users] node exporter's data collection frequency

2024-07-23 Thread mohan garden
Hi All, We are running node exporter in our infra server and prometheus is able to scrape the reported data at 30 seconds scrape inverval. It appears that node exporter collects the df command's output, and we try to discourage the use of df command on the NFS . As we plan to reduce the impac

[prometheus-users] Re: node exporter's data collection frequency

2024-07-23 Thread mohan garden
came across this query , seems data is collected when prometheus contacts the node exporter during scrape. https://groups.google.com/g/prometheus-users/c/h46MJjkEadQ This leaves me with just the following query , does node exporter use the same method to collect the file system usage stats whic

Re: [prometheus-users] Re: SNMP Exporter - Gathering MAC and IP per port

2024-07-23 Thread Matthew Koch
*Correct, the SNMP context I am using is specific to the VLAN that I am trying to get data from. * *Non-Cisco Switch: * dot1dTpFdbStatus_info{dot1dTpFdbAddress="0x00D51541",dot1dTpFdbPort="5",dot1dTpFdbStatus="learned",ifAlias="Switch5",ifDescr="Module: 1 Port: 5 - 10/100 Mbit TX",ifIndex=

Re: [prometheus-users] Re: node exporter's data collection frequency

2024-07-23 Thread Ben Kochie
Best practice if you don't want to include NFS mounts is to exclude it from the list of filesystem types. --collector.filesystem.fs-types-exclude="^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue| *nfs* |nsfs|overlay|proc|procfs|pstore|rpc_pipefs|

[prometheus-users] Re: node exporter's data collection frequency

2024-07-23 Thread 'Brian Candler' via Prometheus Users
> does node exporter use the same method to collect the file system usage stats which the df command uses? Essentially yes. But you can easily exclude certain filesystems and/or types of filesystem from col

Re: [prometheus-users] Re: SNMP Exporter - Gathering MAC and IP per port

2024-07-23 Thread 'Brian Candler' via Prometheus Users
And you can't create an SNMP context on the device that exposes all the parts of the MIB tree that you're interested in? On Tuesday 23 July 2024 at 14:19:14 UTC+1 Matthew Koch wrote: > > *Correct, the SNMP context I am using is specific to the VLAN that I am > trying to get data from. * > *Non-

Re: [prometheus-users] Re: SNMP Exporter - Gathering MAC and IP per port

2024-07-23 Thread Matthew Koch
Well you made rethink how I had the context setup in the auth and I did find something interesting, for the context I had tried vlan-, vlan-*, * and nothing worked previously. I just tried it with the context variable there in the auth but without anything preceding it and I'm starting to get s

[prometheus-users] Prometheus scrap and cookie

2024-07-23 Thread Mohana Ramaratnam
I am looking at recommendations on how to use cookie with Prometheus http/https scrap configuration. I am trying to scrape metrics from a site which requires login credentials. Using cookie is preferable for site performance on each scrape request. I have looked into messages in this group re

Re: [prometheus-users] Graph Issues grafana and peometheus

2024-07-23 Thread Ben Kochie
The easiest thing to do is change your scrape interval to 1m. This would eliminate the problem. Don't worry, this is a perfectly normal interval for Prometheus. On Wed, Jul 24, 2024 at 4:29 AM Tareerat Pansuntia < tareerat.pan...@gmail.com> wrote: > And I would like to know if Prometheus can st

Re: [prometheus-users] Re: SNMP Exporter - Gathering MAC and IP per port

2024-07-23 Thread 'Brian Candler' via Prometheus Users
Depending on what you mean by "fails", you may be able to get some more info by adding debug=true to the query params, e.g. curl 'localhost:9116/snmp?target=x.x.x.x&module=foo&auth=bar&debug=true' On Tuesday 23 July 2024 at 16:26:26 UTC+1 Matthew Koch wrote: > Well you made rethink how I had th