Got an SNMP agent pulling stuff like so, but when I add tagexclude
, it completely stops pushing metrics to database. I am using example from docs: telegraf/docs/CONFIGURATION.md at master · influxdata/telegraf · GitHub
Can anyone tell me what I am doing wrong? I want to remove the filtering tag I initially used from database
Here is my config
[[outputs.http]]
url = "http://<DB>"
data_format = "prometheusremotewrite"
timeout = "15s"
method = "POST"
# tagexclude = ["destination"] <<<<<<<<< If I uncomment this, metrics don't push, but if its commented out its working.
[outputs.http.tagpass]
destination = ["medium"]
[outputs.http.headers]
Content-Type = "application/x-protobuf"
Content-Encoding = "snappy"
X-Prometheus-Remote-Write-Version = "0.1.0"
[[inputs.snmp]]
interval = "60s"
agents = ["udp4://<ROUTER_IP>"]
timeout = "10s"
version = 2
path = ["/mibs"]
unconnected_udp_socket = false
community = "public"
agent_host_tag = "source"
retries = 3
fieldinclude = [
"*ifHCInUcastPkts", "*ifHCOutUcastPkts",
"*ifInDiscards", "*ifOutDiscards", "*ifInErrors", "*ifOutErrors"
]
[[inputs.snmp.table]]
oid = "IF-MIB::ifXTable"
index_as_tag = true
[[inputs.snmp.table.field]]
name = "ifName"
oid = "IF-MIB::ifName"
is_tag = true
[[inputs.snmp.table]]
oid = "IF-MIB::ifTable"
index_as_tag = false
[[inputs.snmp.table.field]]
name = "ifName"
oid = "IF-MIB::ifDescr"
is_tag = true
[inputs.snmp.tags]
destination = "medium"