1. Indicators Analytics#
Activity name | Indicators Analytics |
Activity ID | 68 |
Short Description | Explore NSP UI on creating Threshold Crossing Alarms (TCA) using NSP CN Telemetry |
Difficulty | Beginner |
Tools used | |
Topology Nodes | all SR OS and SRLinux nodes |
References |
1.1 Objective#
Explore NSP Data Collection App to create TCA on CPU usage and visualize the threshold crossing in NSP Data Collection Viewer.
1.2 Technology explanation#
1.2.1 Model-driven XPATH#
When navigating the NE CLI paths, for SR OS pwc json-instance-path
gives you the working context for defining the telemetry subscription object filter.
1.3 Tasks#
You should read these tasks from top-to-bottom before beginning the activity.
It is tempting to skip ahead but tasks may require you to have completed previous tasks before tackling them.
1.3.1 Navigate into Indicators UI from the Data Collection App#
Once you have logged into NSP, navigate into Indicators from the Data Collection App.
1.3.2 Create an NSP Indicator#
- Name: cpu-tca-[grpId]
- Collection Interval:
30 secs
- Window Duration:
15 mins
- Telemetry Type:
telemetry:/base/system-info/system
- Selected Counters:
cpu-usage
- Object Filter:
/nsp-equipment:network/network-element[ne-id='<<ne-id>>']
- Threshold:
- Threshold:
2
- Direction:
Increasing
- Actions:
- Topic Name:
nsp-act-action-event
- Content:
CPU Usage crossed 2
- Topic Name:
- Click Save
- Threshold:
Note
The indicator subscription is specific to an individual network element. Please select an ne-id
that belongs to the network elements of your group.
1.3.3 Increasing CPU Usage#
One possible means of increasing the CPU usage is by performing a rapid-ping to the node or a config push. This isn't the only way to increase CPU usage. If you have a method that works, feel free to perform it.
Now that we have increased the CPU usage, lets see how to visualize the Telemetry Collection.
1.3.4 Visualize Telemetry Collection#
In order to visualize the collection, there are a few stages of definition to reach it.
- Initiate the Viewer
- Select the resource to visualize the collection
- Define additional plotter configs like time range
- Plotter is initialised
Note
The threshold is displayed as a red line on the Plotter to visualize the configured limit. Keep in mind that a threshold alert will only be triggered on the first increase after the threshold is set. If the most recent value was already above the threshold at the time of configuration, this will not trigger an alert.
1.3.5 nsp-act-action-event Notification#
If you are looking to visualize how a Kafka JSON notification would look like, below shows a sample message.
1.4 Summary and review#
Congratulations! If you have got this far you have completed this activity and achieved the following:
- You have learnt how to create Threshold crossing alerts
- You have learnt how to create Telemetry subscriptions
- You have learnt to build object filters
- You have learnt on possible actions that can be taken once a threshold is crossed
This sure is an achievement! Well done!
If you're hungry for more feel free to explore the same activity for an SRL node.