Hi. I want to monitor the size of the each storage areas in my hosts. I used the following config in order to get all entries of the hrStorageTable:
[[inputs.snmp]]
agents = ["myhost:161"]
timeout = "5s"
retries = 3
version = 2
community = "community"
max_repetitions = 10
[[inputs.snmp.field]]
name = "host"
oid = "SNMPv2-MIB::sysName.0"
is_tag = true
[[inputs.snmp.table]]
name = "hrStorage"
oid = ".1.3.6.1.2.1.25.2.3"
inherit_tags = ["host"]
[[inputs.snmp.table.field]]
name = "hrStorageDescr"
oid = "HOST-RESOURCES-MIB::hrStorageDescr"
is_tag = true
After running the test, I’m able to retrieve the metrics:
> hrStorage,agent_host=myhost,host=myhost,hrStorageDescr=/boot,hrStorageIndex=36 hrStorageAllocationUnits=1024i,hrStorageSize=495844i,hrStorageType=".1.3.6.1.2.1.25.2.1.4",hrStorageUsed=156149i 1538709806000000000
> hrStorage,agent_host=myhost,host=myhost,hrStorageDescr=/home,hrStorageIndex=38 hrStorageAllocationUnits=4096i,hrStorageSize=18007380i,hrStorageType=".1.3.6.1.2.1.25.2.1.4",hrStorageUsed=156036i 1538709806000000000
> hrStorage,agent_host=myhost,host=myhost,hrStorageDescr=/,hrStorageIndex=31 hrStorageAllocationUnits=4096i,hrStorageSize=16641962i,hrStorageType=".1.3.6.1.2.1.25.2.1.4",hrStorageUsed=11430053i 1538709806000000000
After doing that, I want to create a graph in grafana.
But when I try to find the fields I can’t find them in the drop down and I don’t have data points. Is there something I’m missing? Any help will be appreciated.
Thanks!