How to get the link utilization information of an entire topology

167 views
Skip to first unread message

viknes indiran

unread,
Jun 12, 2022, 8:56:54 PM6/12/22
to sFlow-RT
Good day,

Is there any way to get the link utilization metric information of all of links in an topology?

Thanks.

Peter Phaal

unread,
Jun 12, 2022, 11:04:04 PM6/12/22
to sFlow-RT
There are a number of options in the REST API depending on how you want to use the data:
http://localhost:8008/dump/ALL/ifinutilzation,ifoututilization/json

You can also query the data from an embedded JavaScript program using equivalant functions, https://sflow-rt.com/reference.php#script

viknes indiran

unread,
Jun 13, 2022, 3:43:41 AM6/13/22
to sFlow-RT
Hi Peter,

I used the first option and I got this output.

 {
  "metricValue": 8.064403220161009E-6,
  "agent": "127.0.0.1",
  "metricName": "ifoututilization",
  "dataSource": "130",
  "lastUpdate": 14817
 },
 {
  "metricValue": 7.1E-6,
  "agent": "127.0.0.1",
  "metricName": "ifoututilization",
  "dataSource": "132",
  "lastUpdate": 6816
 },
 {
  "metricValue": 0,
  "agent": "127.0.0.1",
  "metricName": "ifoututilization",
  "dataSource": "147",
  "lastUpdate": 9817
 },
 {
  "metricValue": 7.1E-6,
  "agent": "127.0.0.1",
  "metricName": "ifoututilization",
  "dataSource": "129",
  "lastUpdate": 817
 }

My aim is to get the link utilization metrics and the switch links associated with it. For example:

metricValue: 0.12
switchLink: s1-s2

metricValue: 0.14
switchLink: s2-s3

How to get an output similar to this example? 

Thank you.  

Peter Phaal

unread,
Jun 13, 2022, 10:21:39 AM6/13/22
to viknes indiran, sFlow-RT
It sounds like you are using Mininet? 

If you install the Mininet Dashboard, https://blog.sflow.com/2016/05/mininet-dashboard.html, then you can query to top interfaces through the dashboard REST API. It would be easy to modify the dashboard application script, sflow-rt/app/mininet-dashboard/scripts/metrics.js, and add a query to report on all interfaces.

FYI The utilization values reported by sFlow don't mean much on Mininet since the virtual interfaces don't have a speed so Open vSwitch reports a default 10G for the ports. You can compute meaningful utilization numbers if you set link bandwidths, get the bits per second traffic rates on the port, and divide by the configured bandwidth (10Mbits/s in the examples in the Mininet Dashboard article).

--
You received this message because you are subscribed to the Google Groups "sFlow-RT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sflow-rt+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sflow-rt/f2c50c55-2cb6-4398-b2d6-4e070595ccd2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages