Hi thanks for reading, I need some advice going forward with how to handle my snmp metrics. I will have a few hundred vertiv watchdogs that will have power and temp sensors on them. I want to use the Grafana dashboard and the geomap panel to show the device on the map in a red or green state. Eventually I would like to show green,yellow,red status points on the map based on if the temp was out of range. Before I got too far down the rabbit hole I thought I would find out if this is possible.
My plan was to take the ‘friendlyName’ which I will set on each remote device as ‘name_geohash’ ex: 'US4D_ 87z9y9bm. Then use a processor(maybe?) to split the friendlyName into two tags so I will have a friendlyName=‘US4D’ and a new tag as geoHash=‘87z9y9bm’ so I can use that in the geomap to plot the point.
- Is there a better way to do this?
- I’m new to processors, could I use the processor.clone and then use the processor.strings on each one to get name and geohash separated? Or how can I add a geohash tag?
- Also can I set default values so if I don’t get a response from the watchdog(maybe it’s offline) that I can then place a red circle on the map.
Here is what I’m gathering from snmp:
[[inputs.snmp]]
agents = ["vertivwatchdog.company.com"]
version = 2
community = "xxx"
name = "Vertiv Geist WD100"
[[inputs.snmp.field]]
name = "friendlyName"
oid = "1.3.6.1.4.1.21239.5.1.1.3.0"
is_tag = true
[[inputs.snmp.field]]
name = "thdSensorTemp"
oid = "1.3.6.1.4.1.21239.5.1.9.1.5.1"
[[inputs.snmp.field]]
name = "internalIO1"
oid = "1.3.6.1.4.1.21239.5.1.2.1.8.1"