Skip to content

Get CPU Information

This gives information about your CPU usage.


GET /device/cpu

Example

CPU

curl -XGET http://localhost:8882/device/cpu
results = mq.index("my-index").get_cpu_info()

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 -XGET your_endpoint/device/cpu \
-H 'x-api-key: XXXXXXXXXXXXXXX'
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"
}