Thanks Brian.  I am successful in querying the metrics in Prometheus, so I 
will check out the Grafana community for support.

On Sunday, September 29, 2024 at 9:03:12 AM UTC-4 Brian Candler wrote:

> First, do a query in the Prometheus web interface (for example, just 
> "ifPhysAddress"). If you see no answers, then you need to drill down into 
> your metrics collection. Check the query "up" to see if SNMP scraping is 
> successful. If it's not, then check logs from snmp_exporter ("journalctl 
> -eu snmp_exporter), or use the test web interface at 
> <your-snmp-exporter>:9116/snmp/status
>
> If the metrics collection into Prometheus is working, meaning that you 
> have a problem with Grafana, then please seek Grafana support from the 
> Grafana 
> Community <https://community.grafana.com/>.
>
> On Sunday 29 September 2024 at 13:57:12 UTC+1 Mitchell Laframboise wrote:
>
>> Good morning group,  I have only some of this public dashboard working 
>> and I'm wondering how to get the rest up and running.  I am starting with 
>> the interface.  Its showing no data, so I was hoping someone could point me 
>> in the right direction.  I've attached a screenshot of the queries for the 
>> dashboard and my generator.yml so you can see if I have this set up 
>> correctly.
>>
>> ---
>> auths:
>>   public_v1:
>>     version: 1
>>   public_v2:
>>     version: 2
>>
>> modules:
>>   # Default IF-MIB interfaces table with ifIndex.
>>   if_mib:
>>     walk: [sysUpTime, 1.3.6.1.2.1.2.2, 1.3.6.1.2.1.31.1.1]
>>     lookups:
>>       - source_indexes: [ifIndex]
>>         lookup: ifAlias
>>       - source_indexes: [ifIndex]
>>         # Uis OID to avoid conflict with PaloAlto PAN-COMMON-MIB.
>>         lookup: 1.3.6.1.2.1.2.2.1.2 # ifDescr
>>       - source_indexes: [ifIndex]
>>         # Use OID to avoid conflict with Netscaler NS-ROOT-MIB.
>>         lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName
>>     overrides:
>>       ifAlias:
>>         ignore: true # Lookup metric
>>       ifDescr:
>>         ignore: true # Lookup metric
>>       ifName:
>>         ignore: true # Lookup metric
>>       ifType:
>>         type: EnumAsInfo
>>   # Default IP-MIB with ipv4InterfaceTable for example.
>>   ip_mib:
>>     walk: [ipv4InterfaceTable]
>>
>>   readynas:
>>     walk:
>>       - 1.3.6.1.4.1.4526               # Raid/Disks status
>>
>> # Synology
>> #
>> # Synology MIBs can be found here:
>> #   http://www.synology.com/support/snmp_mib.php
>> #   
>> http://dedl.synology.com/download/Document/MIBGuide/Synology_MIB_File.zip
>> #
>> # Tested on RS2414rp+ NAS
>> #
>>   synology:
>>     walk:
>>       - 1.3.6.1.4.1.6574.1       # synoSystem
>>       - 1.3.6.1.4.1.6574.2       # synoDisk
>>       - 1.3.6.1.4.1.6574.3       # synoRaid
>>       - 1.3.6.1.4.1.6574.4       # synoUPS
>>       - 1.3.6.1.4.1.6574.5       # synologyDiskSMART
>>       - 1.3.6.1.4.1.6574.6       # synologyService
>>       - 1.3.6.1.4.1.6574.101     # storageIO
>>       - 1.3.6.1.4.1.6574.102     # spaceIO
>>       - 1.3.6.1.4.1.6574.104     # synologyiSCSILUN
>>       - 1.3.6.1.4.1.6574.3.1  # raid table
>>     lookups:
>>       - source_indexes: [spaceIOIndex]
>>         lookup: spaceIODevice
>>         drop_source_indexes: true
>>       - source_indexes: [storageIOIndex]
>>         lookup: storageIODevice
>>         drop_source_indexes: true
>>       - source_indexes: [serviceInfoIndex]
>>         lookup: serviceName
>>         drop_source_indexes: true
>>       - source_indexes: [diskIndex]
>>         lookup: diskID
>>         drop_source_indexes: true
>>       - source_indexes: [raidIndex]
>>         lookup: raidName
>>         drop_source_indexes: true
>>     overrides:
>>       diskModel:
>>         type: DisplayString
>>       diskSMARTAttrName:
>>         type: DisplayString
>>       diskSMARTAttrStatus:
>>         type: DisplayString
>>       diskSMARTInfoDevName:
>>         type: DisplayString
>>       diskType:
>>         type: DisplayString
>>       modelName:
>>         type: DisplayString
>>       raidFreeSize:
>>         type: gauge
>>       raidName:
>>         type: DisplayString
>>       raidTotalSize:
>>         type: gauge
>>       serialNumber:
>>         type: DisplayString
>>       serviceName:
>>         type: DisplayString
>>       version:
>>         type: DisplayString
>>
>> # UCD-SNMP-MIB
>> #
>> # University of California, Davis extensions. Commonly used for host
>> # metrics. For example, Linux-based systems, DD-WRT, Synology,
>> # Mikrotik, Kemp LoadMaster, etc.
>> #
>> # http://www.net-snmp.org/docs/mibs/UCD-SNMP-MIB.txt
>> #
>>   ucd_la_table:
>>     walk:
>>       - 1.3.6.1.4.1.2021.10.1.2 # laNames
>>       - 1.3.6.1.4.1.2021.10.1.5 # laLoadInt
>>       - 1.3.6.1.4.1.2021.10.1.6 # laLoadFloat
>>     lookups:
>>       - source_indexes: [laIndex]
>>         lookup: laNames
>>         drop_source_indexes: true
>>   ucd_memory:
>>     walk:
>>       - 1.3.6.1.4.1.2021.4 # memory
>>   ucd_system_stats:
>>     walk:
>>       - 1.3.6.1.4.1.2021.11 # systemStats
>>
>>
>> Any help would be greatly appreciated!
>>
>> Thanks,
>>
>> [image: Grafana Dashboard NAS.png]
>>
>>

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/a9d5ab93-87e4-4968-8178-e4044dcc74cfn%40googlegroups.com.

Reply via email to