Get system and model inference metrics
curl --request GET \
--url http://{device-ip}:{device-port}/v1/metricsimport requests
url = "http://{device-ip}:{device-port}/v1/metrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{device-ip}:{device-port}/v1/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{device-ip}:{device-port}/v1/metrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{device-ip}:{device-port}/v1/metrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{device-ip}:{device-port}/v1/metrics")
.asString();require 'uri'
require 'net/http'
url = URI("http://{device-ip}:{device-port}/v1/metrics")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"system": {
"cpu_usage_percent": 123,
"memory_total_gb": 123,
"memory_used_gb": 123,
"memory_free_gb": 123,
"memory_usage_percent": 123
},
"models": {}
}Get system and model inference metrics
Returns a unified snapshot of live system resource metrics (CPU, memory) and per-model moving averages for all pipeline stages (last 100 requests).
GET
/
v1
/
metrics
Get system and model inference metrics
curl --request GET \
--url http://{device-ip}:{device-port}/v1/metricsimport requests
url = "http://{device-ip}:{device-port}/v1/metrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{device-ip}:{device-port}/v1/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{device-ip}:{device-port}/v1/metrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{device-ip}:{device-port}/v1/metrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{device-ip}:{device-port}/v1/metrics")
.asString();require 'uri'
require 'net/http'
url = URI("http://{device-ip}:{device-port}/v1/metrics")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"system": {
"cpu_usage_percent": 123,
"memory_total_gb": 123,
"memory_used_gb": 123,
"memory_free_gb": 123,
"memory_usage_percent": 123
},
"models": {}
}Response
200 - application/json
Success
Unified snapshot of system resource metrics and per-model inference metrics.
Was this page helpful?
⌘I

