I happened to run into this exact same problem with Cisco QoS Stats. We’ve been able to the sniff the router sending all the info to telegraf correctly, but when we sniff the communication between telegraf and influxdb, we only see class-default, just like on the issue below.
Can someone point us in the right direction on how to fix it?
opened 07:04AM - 28 Aug 19 UTC
closed 08:43AM - 17 Sep 19 UTC
bug
### Relevant telegraf.conf:
```
[[inputs.cisco_telemetry_mdt]]
## Telemetr… y transport can be "tcp" or "grpc". TLS is only supported when
# ## using the grpc transport.
transport = "grpc"
#
# ## Address and port to host telemetry listener
service_address = "163.162.220.100:54321"
```
### System info:
Operating system: redhat:enterprise_linux 7.6
### Steps to reproduce:
1. Cisco equipment details
Cisco IOS XR Software, Version 6.6.25
Copyright (c) 2013-2019 by Cisco Systems, Inc.
Build Information:
Built By : deenayak
Built On : Wed May 29 06:42:35 PDT 2019
Built Host : iox-lnx-030
Workspace : /auto/srcarchive13/prod/6.6.25/ncs560/ws
Version : 6.6.25
Location : /opt/cisco/XR/packages/
cisco NCS-560 () processor
2. Relevant Cisco equipment configuration
telemetry model-driven
destination-group DGroup1
address-family ipv4 163.162.220.100 port 54321
encoding self-describing-gpb
protocol grpc no-tls
!
!
sensor-group SGroup
sensor-path Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/input/service-policy-names/service-policy-instance/statistics
!
subscription Sub1
sensor-group-id SGroup sample-interval 300000
destination-id DGroup1
source-interface Loopback0
!
3. Send the telegraf output to file
### Expected behavior:
All the metrics included in the output of Pipeline Collector (see dump.pipeline.txt) are also included in Telegraf output.
[dump.pipeline.txt](https://github.com/influxdata/telegraf/files/3549497/dump.pipeline.txt)
### Actual behavior:
In the Telegraf output only the "default class" metrics are included. It seems that Telegraf is not understanding correctly that "class-stats_PIPELINE_EDIT" is an array.
[dump.telegraf.txt](https://github.com/influxdata/telegraf/files/3549503/dump.telegraf.txt)
### Additional info:
*Edit:
We uncommented this line in telegraf.conf:
embedded_tags = [“Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/input/service-policy-names/service-policy-instance/statistics/class-stats/class-name”]
And substituted “input” for “output”, since that’s the direction we’re monitoring.
Thanks a lot for taking the time!
c.
Hi,
Are there any logs or errors from Telegraf? Per that issue, you linked it sounded like the embedded_tags
option is there to help parse these additional lines. Are you certain you have the path correct?
I would also consider running with debug. There aren’t many additional messages from the cisco mdt plugin, but they may provide some additional info.
Thanks