Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You also can query other control metrics by specifying the control metric type such as cpu, memory, disk, network, etc.

REST API

We also provide a way to query and collect control metrics through REST API.
Followings are the REST API for collecting and querying control metrics.

Collector

POST /collector/cpu_metricsCollects CPU metrics.
POST /collector/network_metricsCollects network I/O metrics include in/out-bound packets/bytes statistics.
POST /collector/disk_metricsCollects disk I/O metrics include read and write bytes.
POST /collector/system_infoCollects system information.
POST /collector/memory_metricsCollects memory metrics.

Control Metrics

GET /controlmetrics/memory_metricsList memory metrics of all network resources.
GET /controlmetrics/messagesList control message metrics of all devices.
GET /controlmetrics/messages/{deviceId}List control message metrics of a given device.
GET /controlmetrics/cpu_metricsList CPU metrics.
GET /controlmetrics/disk_metricsList disk metrics of all disk resources.

Web Graphic User Interface (GUI)

...

Export Metrics to Third-party System

...

If you already have your own monitoring system, you may want to export ONOS control metrics to third-party system. 
ONOS provides two ways to support metrics export.

The first way is pull based approach with which you need to periodically pull the control metrics from your system through ONOS REST API.
The detailed REST API can be referred from this link.

The second way is push based approach with which ONOS periodically reports a set of control metrics to predefined third-party system.
By far, ONOS supports three systems and those are InfluxDB, ganglia and graphite monitoring system.
The detailed explanation on exporting the metrics to those system can be referred from following links.

Appendix