Yanggrpc Receiver
contrib
Maintainers: @atoulme
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
The YANG gRPC Receiver collects Model-Driven Telemetry (MDT) from network devices (primarily Cisco) via gRPC Dial-out. It transforms complex Cisco KV-GPB (Key-Value Google Protocol Buffers) data into standard OpenTelemetry metrics, specifically optimized for high-performance analysis in Splunk.Key Features
- Context-Aware Processing: Automatically discovers dimensions (labels) like Interface names, VRF IDs, or BGP neighbors by traversing the telemetry tree.
- YANG-Driven Mapping: Uses Cisco YANG models to distinguish between Counters (monotonic sums) and Gauges (instantaneous values).
- Smart Fallback: Works out-of-the-box using naming heuristics (detecting keys like
name,id,address) even if local YANG files are not provided. - OTLP Compliance: Normalizes all Cisco numeric types into
float64and handles string values as descriptive_infometrics. - Security Hardening: Includes built-in support for client IP allow-listing and ingestion rate limiting.
Example Configuration
Add this receiver to your OpenTelemetry Collector configuration:gRPC Configuration
See configgrpc.Default Configuration
Security Configuration (security)
rate_limiting: enabled (default: false), requests_per_second (100.0), burst_size (10).access_control: allowed_clients (list of IP/CIDR), max_connections (1000).
YANG Parser Settings (yang)
enable_rfc_parser: Enable RFC 6020/7950 compliant parsing.cache_modules: Local directories containing Cisco/IETF.yangfiles for accurate parsing. Cache discovered YANG modules to reduce CPU overhead.
Production Deployment Example
Example OTLP Output
When processing Cisco ARP telemetry data, the receiver generates structured OTLP metrics:Metric Name: cisco.content.arp-oper.type_info
Value: 1.0 (Info Metric)Attributes:
- interface: Vlan200
- vrf: Default
- address: 10.10.10.1
- yang.module: Cisco-IOS-XE-arp-oper
- cisco.node_id: Switch-Core-01
- cisco.subscription_id: 112
Configuration
Example Configuration
Last generated: 2026-04-13