influxdata / influxdata/telegraf

Cisco_telemetry_mdt input plugin incorrect parsing of child policy data sent by sensor "Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/input/service-policy-names/service-policy-instance/statistics"

Open
#10,087 9 comments 0 reactions 1 assignee View on GitHub

@srebhan is already working on this.

Since May 5, 2026.

area/cisco bug
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

Relevent telegraf.conf
# Telegraf Configuration

###############################################################################
#                              GLOBAL CONFIG                                  #
###############################################################################

[agent]

  interval = "60s"
#  round_interval = true
#  metric_batch_size = 5000
#  metric_buffer_limit = 100000
#  collection_jitter = "0s"
  flush_interval = "30s"
#  flush_jitter = "0s"
#  debug = false
#  quiet = false
  logfile = "/tmp/telegraf_tcp.log"
#  hostname = ""
#  omit_hostname = false

###############################################################################
#                            SERVICE INPUT PLUGINS                            #
###############################################################################

[[inputs.cisco_telemetry_mdt]]
transport = "tcp"
service_address = ":5432"

embedded_tags = [
"Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/output/service-policy-names/service-policy-instance/statistics/class-stats/class-name","Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/output/service-policy-names/service-policy-instance/statistics/class_stats/child_policy/content/policy_name","Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/output/service-policy-names/service-policy-instance/statistics/class_stats/child_policy/content/class_stats/class_name"]

[[outputs.influxdb]]
   database = "telegrafdb"
   urls = ["http://localhost:8086"]
   retention_policy = "autogen"
System info

debian buster

Docker

No response

Steps to reproduce
  1. Cisco equipment details
    Cisco IOS XR Software, Version 6.5.3
    Version : 6.5.3

  2. Relevant Cisco equipment configuration

telemetry model-driven
destination-group GROUP1
  address-family ipv4 10.110.254.3 port 5432
   encoding self-describing-gpb
   protocol tcp
  !
!
destination-group DGroup2
  address-family ipv4 10.110.254.3 port 5431
   encoding json
   protocol tcp
  !
!
sensor-group s11
  sensor-path Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/output/service-policy-names/service-policy-instance/statistics
!
subscription sub11
  sensor-group-id s11 sample-interval 30000
  destination-id GROUP1
!
!
  1. send telegraf output to influxdb
Expected behavior

Expected to convert child class name and child policy name to tags ,
expected to get all class names related to child class name but we receive only "class default"

Actual behavior

convert only class name for parent policy not child and hence get only all class names for parent not child policy .

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.