What "metrics" do you need ?
Because if it is octet in / out from a port, you can use
and you get :
"id":
{
"description": "The unique ID of the Port.",
"type": "string",
"maxLength": 9
},
"name":
{
"description": "The name of the Port.",
"type": "string",
"maxLength": 64
},
"packets_tx":
{
"description": "Packets Uploaded By Interface",
"type": "integer"
},
"packets_rx":
{
"description": "Packets Downloaded By Interface",
"type": "integer"
},
"bytes_tx":
{
"description": "Bytes Uploaded By Interface",
"type": "integer"
},
"bytes_rx":
{
"description": "Bytes Downloaded By Interface",
"type": "integer"
},
"throughput_tx_bps":
{
"description": "Upload throughput By Interface",
"type": "integer"
},
"throughput_rx_bps":
{
"description": "Download throughput By Interface",
"type": "integer"
},
"error_tx":
{
"description": "Upload Error Count",
"type": "integer"
},
"error_rx":
{
"description": "Download Error Count",
"type": "integer"
},
"drop_tx":
{
"description": "Packets Dropped by Interface",
"type": "integer"
},
"port_speed_mbps":
{
"description": "Specifies the Port Speed.",
"type": "integer"
}