Here's a sample request that retrieves a return status code and node metrics for a node in the system. In this example, the target node IP address is 192.168.210.16 and the requested output format is JSON.
Request with cURL command line
curl -i http://192.168.210.16/node_status?type=metrics&format=json
Response headers
HTTP/1.1 200 OK
Response body in JSON
{
"httpConnections" : "10000",
"cpuUser" : "0.36",
"cpuSystem" : "0.56",
"iowait" : "0.05",
"swapout" : "0.00",
"volume" : [ {
"id" : "archive034",
"blocksRead" : "0.00",
"blocksWrite" : "0.29",
"diskUtilization" : "0.00"
}, {
"id" : "archive033",
"blocksRead" : "0.00",
"blocksWrite" : "0.59",
"diskUtilization" : "0.00"
} ],
"frontendBytesRead" : "0.14",
"frontendBytesWrite" : "0.00",
"backendBytesRead" : "0.83",
"backendBytesWrite" : "0.59",
"requestTimestamp" : "1509726379318",
"metricsTimestamp" : "1509726014000"
}
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.