So, your other solution worked in this case too. I modified the configuration to get data in a table and voila the stats come through. Just need to work on what I get.
I’m also working on a similar SNMP collection and I think the config is incomplete. I encountered a similar issue when I was trying to collect just one SNMP field and making that field as a tag. Later I got it working by removing the is_tag. Atleast there should be one field value for the output influxdb.
Did you try removing the is_tag from your config?
[[inputs.snmp.field]]
name = “PhaseInputVoltage”
oid = “.1.3.6.1.4.1.318.1.1.1.9.2.3.1.3” is_tag = true
Or you can have an extra field added without is_tag field.
Also let me know if you where able to filter out the output coming from when you are using the table.
Thanks.
Doesn’t make sense to get data always in table when brothers/ siblings within the MIB-OID get pulled and you’re pulling unwanted data. Hence removing the is_tag for the field worked. Sorry had not updated this
When you mean filter the output from the table, do you mean in Grafana? Am using table only when required otherwise pull just pull relevant fields using snmp.field
I was thinking about using snmp.table but it gives the whole table fields but I just need a few fields. By using the fieldpass I was able to pass only the required fields from the snmp.table and the config looked something like this:
fieldpass = ["ifOutDiscards"]
[[inputs.snmp.table]]
name = "stats"
oid = "IF-MIB::ifTable"
[[inputs.snmp.table.field]]
name = "ifOutDiscards"
oid = "IF-MIB::ifOutDiscards"
This would just pass the ifOutDiscards. But anyway just like you pointed out I should be probably using the snmp.field and grab the relevant fields and avoid getting the unwanted data.