Screen Shot 2021-02-18 at 11.46.32 AM.png
Start telegraf
/usr/bin/telegraf --config /etc/telegraf/telegraf-grpc.conf
Enable gRPC subscription configuration on IOS XE
More details will be added once validated ;)
! NETCONF-yang is required for gRPC Dial-Out telemetry:
netconf-yang
! Remove any previous MDT configuration:
no telemetry ietf subscription 3301
# Native platform components
telemetry ietf subscription 3301
encoding encode-kvgpb
filter xpath /platform-ios-xe-oper:components
source-address 10.1.1.5
stream yang-push
update-policy periodic 3000
receiver ip address 10.1.1.3 57500 protocol grpc-tcp
Collector Configuration Details
telegraf.conf
# Global Agent Configuration
[agent]
hostname = "jcohoe-ubuntu"
flush_interval = "15s"
interval = "15s"
# gRPC Dial-Out Telemetry Listener
[[inputs.cisco_telemetry_mdt]]
transport = "grpc"
service_address = ":57500"
# Output Plugin InfluxDB
[[outputs.influxdb]]
database = "mdt_grpc"
urls = [ "http://127.0.0.1:8086" ]
[[outputs.file]]
files = ["/tmp/telegraf-grpc.log"]