> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/fleet-intel/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/fleet-intel/_mcp/server.

# Get available metrics

GET /v1/metrics

Get a list of all available metrics, organized by component. Supports optional filtering by isCritical, aggregatable, and type. Unknown or false values for boolean params are treated as no filter.
Use psirtComponent=true to include active PSIRT CVE sub-components under the "psirt" component.

Reference: https://docs.nvidia.com/fleet-intel/api-explorer/metrics/get-v-1-metrics

## Request

### Query parameters

- `isCritical` (string, optional) — If 'true', only critical metrics are returned. If absent or 'false', all metrics are returned.
- `aggregatable` (string, optional) — If 'true', metrics that cannot be aggregated across nodes are excluded. If absent or 'false', all metrics are returned.
- `type` (string, optional) — If set, only metrics matching this type are returned (e.g., 'utilization', 'limit'). If absent, all metrics are returned.
- `psirtComponent` (boolean, optional) — Include active PSIRT CVE sub-components (default: false)
- `entityLevel` (enum, optional) — Optional entity scope for architecture-aware filtering. Currently only 'node' is supported.
  - Allowed values: `node`
- `entityID` (string, optional) — Entity ID for architecture-aware filtering. Required when entityLevel is set.

## Response

### 200

Successful response

- `components` (list of object, optional)
  - `displayName` (string, optional)
  - `isBackendComponent` (boolean, optional)
  - `metrics` (list of object, optional)
    - `displayName` (string, optional)
    - `name` (string, optional)
    - `type` (string, optional)
    - `unit` (string, optional)
  - `name` (string, optional)
  - `subComponents` (list of string, optional) — Dynamic children (e.g., active PSIRT CVEs)

## Examples

**Response**

```json
{
  "components": [
    {
      "displayName": "string",
      "isBackendComponent": true,
      "metrics": [
        {
          "displayName": "string",
          "name": "string",
          "type": "string",
          "unit": "string"
        }
      ],
      "name": "string",
      "subComponents": [
        "string"
      ]
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/v1/metrics"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/v1/metrics';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/v1/metrics"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v1/metrics")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/v1/metrics")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/v1/metrics');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/v1/metrics");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/v1/metrics")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```