> This page is for version Latest (default).
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/fleet-intel/latest/llms.txt

> 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.

# 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.
Security vulnerabilities are available through the Security Vulnerability Report, not the component catalog.

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.
- `dataSource` (enum, optional) — Filter the catalog by data source: inband, oob, or all. Omitted defaults to all sources.
  - Allowed values: `inband`, `oob`, `all`
- `psirtComponent` (boolean, optional, deprecated) — Deprecated compatibility parameter; ignored. Security findings are not health components.
- `entityLevel` (enum, optional) — Optional entity scope. Components an entity cannot produce are omitted, so an empty result is the signal that a scope has no nodes of the requested data source. 'node' additionally filters by GPU/CPU architecture and probes per-sensor availability.
  - Allowed values: `node`, `nodegroup`, `computezone`
- `entityID` (string, optional) — Entity ID matching entityLevel: node UUID, node group UUID, or compute zone UUID. Required when entityLevel is set.

## Response

### 200

Successful response

- `components` (list of models.ComponentMetricList, optional)

## Errors

### 401 Unauthorized Error

Unauthorized

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 403 Forbidden Error

Forbidden - UAM authorization denied

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 499 Client Closed Request Error

Client Closed Request - request was canceled by the client

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

### 500 Internal Server Error

Internal Server Error

- `details` (string, optional) — Detailed error information
- `error` (string, optional) — Error message or type
- `requestStatus` (models.KASRequestStatus, optional) — RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

## Types

### models.ComponentMetricList

- `dataSource` (string, optional) — DataSource is the agent enrollment that produces this component: "inband" or "oob". Every component is one agent's data, so this is the authoritative place to tell the two apart — including for backend components such as OOB Agent Connectivity, which carry no metrics to classify. Values: inband / oob.
- `displayName` (string, optional)
- `group` (string, optional) — Group lets clients group the flat component list without changing its structure.
- `isBackendComponent` (boolean, optional)
- `metrics` (list of models.MetricInfo, optional)
- `name` (string, optional)
- `subComponents` (list of string, optional) — Dynamic children (e.g., active PSIRT CVEs)

### models.KASRequestStatus

RequestStatus contains KAS-specific error details This is added to reflect the field in OpenAPI docs for UI reference and not populated by our code If KAS returns an error, the request will not be forwarded to the backend

- `requestId` (string, optional) — Request ID for tracing
- `statusCode` (string, optional) — Status code from KAS
- `statusDescription` (string, optional) — Status description from KAS

### models.MetricInfo

- `dataSource` (string, optional) — DataSource is set only for metrics that carry their own agent gate: "oob" for BMC sensor charts. Its absence means "no gate of its own", not "in-band" — read the enclosing component's dataSource to classify a metric, which a metric may repeat but never contradict. Values: inband / oob.
- `displayName` (string, optional)
- `name` (string, optional)
- `type` (string, optional)
- `unit` (enum, optional)
  - Allowed values: `MHz`, `count`, `°C`, `°F`, `celsius`, `watts`, `boolean`, `MB`, `ratio`, `MB/s`, `ber`, `nanoseconds`, `ms`, `seconds`, `s`, `bytes`, `bytes/s`, `millijoules`, `load`, `cores`, `percent`, `rpm`, `volts`

## Examples

**Response**

```json
{
  "components": [
    {
      "dataSource": "string",
      "displayName": "string",
      "group": "GPU hardware and runtime",
      "isBackendComponent": true,
      "metrics": [
        {
          "dataSource": "string",
          "displayName": "string",
          "name": "string",
          "type": "string",
          "unit": "ratio"
        }
      ],
      "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()
```