Skip to main content

Get CPU Information

This gives information about your CPU usage.


GET /device/cpu

Example

CPU

=== "Marqo Open Source" === "cURL"

curl -XGET http://localhost:8882/device/cpu

=== "Python"

results = mq.index("my-index").get_cpu_info()

=== "Marqo Cloud" For Marqo Cloud, you will need to access the endpoint of your index and replace your_endpoint with this. To do this, visit Find Your Endpoint. You will also need your API Key. To obtain this key visit Find Your API Key. === "cURL"

curl -XGET your_endpoint/device/cpu \
-H 'x-api-key: XXXXXXXXXXXXXXX'

=== "Python"

results = mq.index("my-index").get_cpu_info()

Response: 200 OK

{
"cpu_usage_percent": "1.0 %",
"memory_used_percent": "70.0 %",
"memory_used_gb": "11.2"
}