Hello Team,
Telegraf plugin as been deployed on our system and It has been connected and has been receiving data from several cisco devices using inputs.cisco_telemetry_mdt.
we are able to receive all telemetry related data in tags in a json formate except one key which is a critical key called the source IP.
Telegraf.conf
###############################################################################
# INPUT PLUGINS #
###############################################################################
# Cisco model-driven telemetry (MDT) input plugin for IOS XR, IOS XE and NX-OS platforms
[[inputs.cisco_telemetry_mdt]]
## Telemetry transport can be "tcp" or "grpc". TLS is only supported when
## using the grpc transport.
transport = "tcp"
## Address and port to host telemetry listener
service_address = ":XXXX"
## Define (for certain nested telemetry measurements with embedded tags) which fields are tags
embedded_tags = ["Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/input/service-policy-names/service-policy-instance/statistics/class-stats/class-name/`"]
## Define aliases to map telemetry encoding paths to simple measurement names
[inputs.cisco_telemetry_mdt.aliases]
ifstats = "ietf-interfaces:interfaces-state/interface/statistics"
##Define Property Xformation, please refer README and https://pubhub.devnetcloud.com/media/dme-docs-9-3-3/docs/appendix/ for Model details.
[inputs.cisco_telemetry_mdt.dmes]
ModTs = "ignore"
CreateTs = "ignore"
###############################################################################
# OUTPUT PLUGINS #
###############################################################################
# Configuration for the Kafka server to send metrics to
[[outputs.kafka]]
## URLs of kafka brkers
brokers = ["kafka:9092"]
## Kafka topic for producer messages
topic = "telemetry"
routing_tag = "kafka"
data_format = "json"
Telegraf sample output contains
“tags”:{“host”:“abcd”,“interface_name”:“XYZ0/0/0/0”,
“path”:“Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/input/service-policy-names/service-policy-instance/statistics”,
“source”:“SourceDeviceName”,“subscription”:“subscription”},“timestamp”:12345678}
Not the Source IP.
After going through the code for cisco telemetry mdt. Unfortunaltely, I can’t find any line adding the source IP to the data point.
Could you please suggest a way to get the field source IP via the telegraf output.
Thank you.
Regards!