curl
curl --location --request GET 'http://oc1-lts0:9090/v1/stats' \
--header 'Accept: application/json'import requests
url = "http://oc1-lts0:9090/v1/stats"
payload = { "filter": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({filter: '<string>'})
};
fetch('http://oc1-lts0:9090/v1/stats', 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 => "9090",
CURLOPT_URL => "http://oc1-lts0:9090/v1/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'filter' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://oc1-lts0:9090/v1/stats"
payload := strings.NewReader("{\n \"filter\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://oc1-lts0:9090/v1/stats")
.header("Content-Type", "application/json")
.body("{\n \"filter\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://oc1-lts0:9090/v1/stats")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body[
{
"name": "vm.stats.pdfCacheSize",
"time": "1686335017884363",
"timestamp": "2023-06-09T18:23:37.884Z",
"node": "sql0",
"value": 4680936
},
{
"name": "localStorageService.device.spaceFree",
"time": "1686335145388588",
"timestamp": "2023-06-09T18:25:45.388Z",
"node": "sql0",
"value": 0,
"device": "4418fbc3-fcf9-5cfe-b2b3-b41a8247a600"
}
]System Information REST Endpoints
Get Statistics
Retrieve the statistics on each node in the database.
GET
/
v1
/
stats
curl
curl --location --request GET 'http://oc1-lts0:9090/v1/stats' \
--header 'Accept: application/json'import requests
url = "http://oc1-lts0:9090/v1/stats"
payload = { "filter": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({filter: '<string>'})
};
fetch('http://oc1-lts0:9090/v1/stats', 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 => "9090",
CURLOPT_URL => "http://oc1-lts0:9090/v1/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'filter' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://oc1-lts0:9090/v1/stats"
payload := strings.NewReader("{\n \"filter\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://oc1-lts0:9090/v1/stats")
.header("Content-Type", "application/json")
.body("{\n \"filter\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://oc1-lts0:9090/v1/stats")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body[
{
"name": "vm.stats.pdfCacheSize",
"time": "1686335017884363",
"timestamp": "2023-06-09T18:23:37.884Z",
"node": "sql0",
"value": 4680936
},
{
"name": "localStorageService.device.spaceFree",
"time": "1686335145388588",
"timestamp": "2023-06-09T18:25:45.388Z",
"node": "sql0",
"value": 0,
"device": "4418fbc3-fcf9-5cfe-b2b3-b41a8247a600"
}
]These fields appear in every entry returned in the response from the
http://oc1-lts0:9090/v1/stats endpoint:nametimetimestampnodevalue
Last modified on July 8, 2026
Was this page helpful?
⌘I

