Monitor CPU Utilization Using Telemetry Data to Plan Network Infrastructure explains the key information for this topic.
The use case illustrates how, with the dial-out mode, you can use telemetry data to proactively monitor CPU utilization. Monitoring CPU utilization ensures efficient storage capabilities in your network. This use case describes the tools used in the open-sourced collection stack to store and analyse telemetry data.
Watch this video to see how you configure model-driven telemetry to take advantage of data models, open source collectors, encodings and integrate into monitoring tools.
Telemetry involves the following workflow:
-
Define: You define a subscription to stream data from the router to the receiver. To define a subscription, you create a destination-group and a sensor-group.
-
Deploy: The router establishes a subscription-based telemetry session and streams data to the receiver. You verify subscription deployment on the router.
-
Operate: You consume and analyse telemetry data using open-source tools, and take necessary actions based on the analysis.
Before you begin
Make sure you have L3 connectivity between the router and the receiver.
Define a Subscription to Stream Data from Router to Receiver
Create a subscription to define the data of interest to be streamed from the router to the destination.
Procedure
Verify Deployment of the Subscription
The router dials out to the receiver to establish a session with each destination in the subscription. After the session is established, the router streams data to the receiver to create a data lake.
You can verify the deployment of the subscription on the router.
Procedure
Operate on Telemetry Data for In-depth Analysis of the Network
You can start consuming and analyzing telemetry data from the data lake using an open-sourced collection stack. This use case uses the following tools from the collection stack:
-
Pipeline is a lightweight tool used to collect data. You can download Network Telemetry Pipeline from GitHub. You define how you want the collector to interact with routers and where you want to send the processed data using
pipeline.conffile. -
Telegraph (plugin-driven server agent) and InfluxDB (a time series database (TSDB)) stores telemetry data, which is retrieved by visualization tools. You can download InfluxDB from GitHub. You define what data that you want to include into your TSDB using the
metrics.jsonfile. -
Grafana is a visualization tool that displays graphs and counters for data streamed from the router.
In summary, Pipeline accepts TCP and gRPC telemetry streams, converts data and pushes data to the InfluxDB database. Grafana uses the data from InfluxDB database to build dashboards and graphs. Pipeline and InfluxDB may run on the same server or on different servers.
Consider that the router is streaming data of approximately 350 counters every 5 seconds, and Telegraf requests information from the Pipeline at 1-second intervals. The CPU usage is analyzed in three stages using:
-
a single router to get initial values
-
two routers to find the difference in values and understand the pattern.
-
five routers to arrive at a proof-based conclusion.
This helps you make informed business decisions about deploying the infrastructure; in this case, the CPU.