The Future of Networking: How SONiC’s Open Architecture Drives Innovation and Efficiency
SONiC (Software for Open Networking in the Cloud) emerged from Microsoft’s innovation hub in 2016, designed to transform…
Read More
This document provides an overview of integrating Telegraf, InfluxDB, and Grafana to monitor SONiC (Software for Open Networking in the Cloud) devices using gNMI (gRPC...
This document provides an overview of integrating Telegraf, InfluxDB, and Grafana to monitor SONiC (Software for Open Networking in the Cloud) devices using gNMI (gRPC Network Management Interface). It highlights the advantages of this setup and compares it with other monitoring solutions.
| Feature | gNMI | SNMP | NETCONF/YANG | RESTCONF |
|---|---|---|---|---|
| Transport | gRPC-based (binary) | UDP-based (text) | SSH-based (XML) | HTTP-based (XML/JSON) |
| Performance | High (streaming support) | Low (polling-based) | Moderate (RPC-based) | Moderate (REST-based) |
| Security | TLS encryption | Minimal security | Secure with SSH | Secure with TLS |
| Scalability | High | Moderate | Moderate | Moderate |
| Data Model | Structured (Protobuf/YANG) | Unstructured (OID) | Structured (YANG) | Structured (YANG) |
| Telemetry | Streaming & Polling | Polling only | RPC-based retrieval | RPC-based retrieval |
| Ease of Use | Modern & Developer-friendly | Legacy, complex | Requires XML handling | Requires REST API knowledge |
| Feature | Telegraf + InfluxDB + Grafana | SNMP-based Monitoring | ELK Stack (Elasticsearch, Logstash, Kibana) |
|---|---|---|---|
| Real-time Data | Yes (gNMI streaming) | No (polling-based) | Limited (log-based) |
| Data Efficiency | High (time-series storage) | Moderate | High (searchable logs) |
| Visualization | Extensive (Grafana) | Basic | Advanced (Kibana) |
| Alerting | Yes | Limited | Yes |
| Scalability | High | Moderate | High |
| Protocol Support | gNMI, SNMP, others | SNMP, NetFlow | Logs, Metrics, APM |
gNMI streaming telemetry offers an efficient alternative by continuously transmitting data from network devices with incremental updates. Instead of relying on SNMP’s polling mechanism, which collects data regardless of changes, gNMI allows operators to subscribe to specific data points using well-defined sensor identifiers. This approach provides near real-time, model-driven, and analytics-ready insights, enabling more effective network automation, traffic optimization, and proactive troubleshooting.
[[inputs.gnmi]]
#Address and port of the gNMI GRPC server (Update with sonic device IP)
addresses = [“:”,”:”]
#define credentials
username = “”
password = “”
#gNMI encoding requested (one of: “proto”, “json”, “json_ietf”, “bytes”)
encoding = “json”
#redial in case of failures after
redial = “10s”
#enable TLS only if any of the other options are specified (For different telegraf version it will be enable_tls = true)
tls_enable = true
#Use TLS but skip chain & host verification
insecure_skip_verify = true
#Subscription to get temperature detail
[[inputs.gnmi.subscription]]
name = “temperature_sensor”
origin = “openconfig”
path = “<url>”
sample_interval = “60s”
Note : Once Configuration has been Updated restart telegraf service i.e sudo systemctl restart telegraf




This observability stack is not just a combination of open-source tools, it’s a production-ready framework engineered for real-time visibility across SONiC environments.
By combining gNMI streaming, Telegraf, InfluxDB, and Grafana, and tuning them specifically for SONiC-based networking, PalC Networks helps organizations monitor infrastructure with precision, scalability, and speed. We’ve implemented custom telemetry paths, dashboard packs, and threshold-driven alerting systems.
If you’re adopting SONiC and planning to integrate it with a monitoring stack-reach out to us. Our team supports everything from architecture design to implementation, validation, and ongoing maintenance.
If you need support or guidance in exploring OpenStack, open networking, or data center infrastructure optimization, we are here to help.
Next steps
Talk to an Infrastructure Expert to discuss how PalC can help you build production-grade, open networking solutions.