---
title: Nvidia Triton
description: NVIDIA Triton Inference Server is open source inference-serving software
breadcrumbs: Docs > Integrations > Nvidia Triton
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Nvidia Triton
Supported OS Integration version3.4.2
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

This check monitors [Nvidia Triton](https://www.nvidia.com/en-us/ai-data-science/products/triton-inference-server/) through the Datadog Agent.

**Minimum Agent version:** 7.50.0

## Setup{% #setup %}

Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the [Autodiscovery Integration Templates](https://docs.datadoghq.com/agent/kubernetes/integrations.md) for guidance on applying these instructions.

### Installation{% #installation %}

The Nvidia Triton check is included in the [Datadog Agent](https://app.datadoghq.com/account/settings/agent/latest) package. No additional installation is needed on your server.

#### OpenMetrics endpoint{% #openmetrics-endpoint %}

By default, the Nvidia Triton server exposes all metrics through the Prometheus endpoint. To enable all metrics reportings:

```
tritonserver --allow-metrics=true
```

To change the metric endpoint, use the `--metrics-address` option.

Example:

```
tritonserver --metrics-address=http://0.0.0.0:8002
```

In this case, the OpenMetrics endpoint is exposed at this URL: `http://<NVIDIA_TRITON_ADDRESS>:8002/metrics`.

The [latency summary](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/metrics.html#summaries) metrics are disabled by default. To enable summary metrics for latencies, use the command below:

```
tritonserver --metrics-config summary_latencies=true
```

The [latency histogram](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/metrics.html#histograms) metrics are disabled by default. To enable the request, queue, and compute and first response histograms, use the command below:

```
tritonserver --metrics-config summary_latencies=simplified --metrics-config histogram_latencies=true
```

When Triton serves models with the TensorRT-LLM backend, the integration also collects the [TensorRT-LLM metrics](https://github.com/triton-inference-server/tensorrtllm_backend#triton-metrics) (`nvidia_triton.trt_llm.*`).

The [response cache metrics](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/metrics.html#response-cache-metrics) are not reported by default. You need to enable a cache implementation on the server side by specifying a <cache_implementation> and corresponding configuration.

For instance:

```
tritonserver --cache-config local,size=1048576
```

Nvidia Triton also offers the possibility to expose [custom metrics](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/metrics.html#custom-metrics) through their Openemtrics endpoint. Datadog can also collect these custom metrics using the `extra_metrics` option.

{% alert level="warning" %}
These custom Nvidia Triton metrics are considered standard metrics in Datadog.
{% /alert %}

### Configuration{% #configuration %}

1. Edit the `nvidia_triton.d/conf.yaml` file, in the `conf.d/` folder at the root of your Agent's configuration directory to start collecting your nvidia_triton performance data. See the [sample nvidia_triton.d/conf.yaml](https://github.com/DataDog/integrations-core/blob/master/nvidia_triton/datadog_checks/nvidia_triton/data/conf.yaml.example) for all available configuration options.

1. [Restart the Agent](https://docs.datadoghq.com/agent/guide/agent-commands.md#start-stop-and-restart-the-agent).

### Validation{% #validation %}

[Run the Agent's status subcommand](https://docs.datadoghq.com/agent/guide/agent-commands.md#agent-status-and-information) and look for `nvidia_triton` under the Checks section.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **nvidia_triton.cache.hit.duration_per_model.count**(count)           | Total cache hit duration per model, in microseconds*Shown as microsecond*                                                        |
| **nvidia_triton.cache.hit.histogram_us.bucket**(count)                 | Histogram of cache hit duration in microseconds (bucket)                                                                         |
| **nvidia_triton.cache.hit.histogram_us.count**(count)                  | Histogram of cache hit duration in microseconds (count)                                                                          |
| **nvidia_triton.cache.hit.histogram_us.sum**(count)                    | Histogram of cache hit duration in microseconds (sum)*Shown as microsecond*                                                      |
| **nvidia_triton.cache.hit.summary_per_model.count**(count)            | Summary of cache hit duration per model in microseconds (count)*Shown as microsecond*                                            |
| **nvidia_triton.cache.hit.summary_per_model.quantile**(gauge)         | Summary of cache hit duration per model in microseconds (quantile)*Shown as microsecond*                                         |
| **nvidia_triton.cache.hit.summary_per_model.sum**(count)              | Summary of cache hit duration per model in microseconds (sum)*Shown as microsecond*                                              |
| **nvidia_triton.cache.insertion.duration**(gauge)                       | Total cache insertion duration, in microseconds*Shown as microsecond*                                                            |
| **nvidia_triton.cache.lookup.duration**(gauge)                          | Total cache lookup duration (hit and miss), in microseconds*Shown as microsecond*                                                |
| **nvidia_triton.cache.miss.duration_per_model.count**(count)          | Total cache miss (insert and lookup) duration per model, in microseconds*Shown as microsecond*                                   |
| **nvidia_triton.cache.miss.histogram_us.bucket**(count)                | Histogram of cache miss duration in microseconds (bucket)                                                                        |
| **nvidia_triton.cache.miss.histogram_us.count**(count)                 | Histogram of cache miss duration in microseconds (count)                                                                         |
| **nvidia_triton.cache.miss.histogram_us.sum**(count)                   | Histogram of cache miss duration in microseconds (sum)*Shown as microsecond*                                                     |
| **nvidia_triton.cache.miss.summary_per_model.count**(count)           | Summary of cache miss duration per model in microseconds (count)*Shown as microsecond*                                           |
| **nvidia_triton.cache.miss.summary_per_model.quantile**(gauge)        | Summary of cache miss duration per model in microseconds (quantile)*Shown as microsecond*                                        |
| **nvidia_triton.cache.miss.summary_per_model.sum**(count)             | Summary of cache miss duration per model in microseconds (sum)*Shown as microsecond*                                             |
| **nvidia_triton.cache.num.entries**(gauge)                              | Number of responses stored in response cache                                                                                     |
| **nvidia_triton.cache.num.evictions**(gauge)                            | Number of cache evictions in response cache                                                                                      |
| **nvidia_triton.cache.num.hits**(gauge)                                 | Number of cache hits in response cache                                                                                           |
| **nvidia_triton.cache.num.hits_per_model.count**(count)               | Number of cache hits per model                                                                                                   |
| **nvidia_triton.cache.num.lookups**(gauge)                              | Number of cache lookups in response cache                                                                                        |
| **nvidia_triton.cache.num.misses**(gauge)                               | Number of cache misses in response cache                                                                                         |
| **nvidia_triton.cache.num.misses_per_model.count**(count)             | Number of cache misses per model                                                                                                 |
| **nvidia_triton.cache.util**(gauge)                                     | Cache utilization [0.0 - 1.0]                                                                                                    |
| **nvidia_triton.cpu.memory.total_bytes**(gauge)                        | CPU total memory (RAM), in bytes*Shown as byte*                                                                                  |
| **nvidia_triton.cpu.memory.used_bytes**(gauge)                         | CPU used memory (RAM), in bytes*Shown as byte*                                                                                   |
| **nvidia_triton.cpu.utilization**(gauge)                                | CPU utilization rate [0.0 - 1.0]                                                                                                 |
| **nvidia_triton.energy.consumption.count**(count)                       | GPU energy consumption in joules since the Triton Server started                                                                 |
| **nvidia_triton.gpu.memory.total_bytes**(gauge)                        | GPU total memory, in bytes*Shown as byte*                                                                                        |
| **nvidia_triton.gpu.memory.used_bytes**(gauge)                         | GPU used memory, in bytes*Shown as byte*                                                                                         |
| **nvidia_triton.gpu.power.limit**(gauge)                                | GPU power management limit in watts*Shown as watt*                                                                               |
| **nvidia_triton.gpu.power.usage**(gauge)                                | GPU power usage in watts*Shown as watt*                                                                                          |
| **nvidia_triton.gpu.utilization**(gauge)                                | GPU utilization rate [0.0 - 1.0)                                                                                                 |
| **nvidia_triton.inference.compute.infer.duration_us.count**(count)     | Cumulative compute inference duration in microseconds (does not include cached requests)*Shown as microsecond*                   |
| **nvidia_triton.inference.compute.infer.histogram_us.bucket**(count)   | Histogram of inference compute infer duration in microseconds (bucket)                                                           |
| **nvidia_triton.inference.compute.infer.histogram_us.count**(count)    | Histogram of inference compute infer duration in microseconds (count)                                                            |
| **nvidia_triton.inference.compute.infer.histogram_us.sum**(count)      | Histogram of inference compute infer duration in microseconds (sum)*Shown as microsecond*                                        |
| **nvidia_triton.inference.compute.infer.summary_us.count**(count)      | Cumulative compute inference duration in microseconds (count) (does not include cached requests)*Shown as microsecond*           |
| **nvidia_triton.inference.compute.infer.summary_us.quantile**(gauge)   | Cumulative compute inference duration in microseconds (quantile)(does not include cached requests)*Shown as microsecond*         |
| **nvidia_triton.inference.compute.infer.summary_us.sum**(count)        | Cumulative compute inference duration in microseconds (sum) (does not include cached requests)*Shown as microsecond*             |
| **nvidia_triton.inference.compute.input.duration_us.count**(count)     | Cumulative compute input duration in microseconds (does not include cached requests)*Shown as microsecond*                       |
| **nvidia_triton.inference.compute.input.histogram_us.bucket**(count)   | Histogram of inference compute input duration in microseconds (bucket)                                                           |
| **nvidia_triton.inference.compute.input.histogram_us.count**(count)    | Histogram of inference compute input duration in microseconds (count)                                                            |
| **nvidia_triton.inference.compute.input.histogram_us.sum**(count)      | Histogram of inference compute input duration in microseconds (sum)*Shown as microsecond*                                        |
| **nvidia_triton.inference.compute.input.summary_us.count**(count)      | Cumulative compute input duration in microseconds (sum) (does not include cached requests)*Shown as microsecond*                 |
| **nvidia_triton.inference.compute.input.summary_us.quantile**(gauge)   | Cumulative compute input duration in microseconds (quantile) (does not include cached requests)*Shown as microsecond*            |
| **nvidia_triton.inference.compute.input.summary_us.sum**(count)        | Cumulative compute input duration in microseconds (count) (does not include cached requests)*Shown as microsecond*               |
| **nvidia_triton.inference.compute.output.duration_us.count**(count)    | Cumulative inference compute output duration in microseconds (does not include cached requests)*Shown as microsecond*            |
| **nvidia_triton.inference.compute.output.histogram_us.bucket**(count)  | Histogram of inference compute output duration in microseconds (bucket)                                                          |
| **nvidia_triton.inference.compute.output.histogram_us.count**(count)   | Histogram of inference compute output duration in microseconds (count)                                                           |
| **nvidia_triton.inference.compute.output.histogram_us.sum**(count)     | Histogram of inference compute output duration in microseconds (sum)*Shown as microsecond*                                       |
| **nvidia_triton.inference.compute.output.summary_us.count**(count)     | Cumulative inference compute output duration in microseconds (count) (does not include cached requests)*Shown as microsecond*    |
| **nvidia_triton.inference.compute.output.summary_us.quantile**(gauge)  | Cumulative inference compute output duration in microseconds (quantile) (does not include cached requests)*Shown as microsecond* |
| **nvidia_triton.inference.compute.output.summary_us.sum**(count)       | Cumulative inference compute output duration in microseconds (sum) (does not include cached requests)*Shown as microsecond*      |
| **nvidia_triton.inference.count.count**(count)                          | Number of inferences performed (does not include cached requests)                                                                |
| **nvidia_triton.inference.exec.count.count**(count)                     | Number of model executions performed (does not include cached requests)                                                          |
| **nvidia_triton.inference.first_response.histogram_ms.bucket**(count) | Histogram of time from request to first response in milliseconds (bucket)                                                        |
| **nvidia_triton.inference.first_response.histogram_ms.count**(count)  | Histogram of time from request to first response in milliseconds (count)                                                         |
| **nvidia_triton.inference.first_response.histogram_ms.sum**(count)    | Histogram of time from request to first response in milliseconds (sum)*Shown as millisecond*                                     |
| **nvidia_triton.inference.pending.request.count**(gauge)                | Instantaneous number of pending requests awaiting execution per-model.                                                           |
| **nvidia_triton.inference.queue.duration_us.count**(count)             | Cumulative inference queuing duration in microseconds (includes cached requests)*Shown as microsecond*                           |
| **nvidia_triton.inference.queue.histogram_us.bucket**(count)           | Histogram of inference queue duration in microseconds (bucket)                                                                   |
| **nvidia_triton.inference.queue.histogram_us.count**(count)            | Histogram of inference queue duration in microseconds (count)                                                                    |
| **nvidia_triton.inference.queue.histogram_us.sum**(count)              | Histogram of inference queue duration in microseconds (sum)*Shown as microsecond*                                                |
| **nvidia_triton.inference.queue.summary_us.count**(count)              | Summary of inference queuing duration in microseconds (count) (includes cached requests)*Shown as microsecond*                   |
| **nvidia_triton.inference.queue.summary_us.quantile**(gauge)           | Summary of inference queuing duration in microseconds (quantile) (includes cached requests)*Shown as microsecond*                |
| **nvidia_triton.inference.queue.summary_us.sum**(count)                | Summary of inference queuing duration in microseconds (sum) (includes cached requests)*Shown as microsecond*                     |
| **nvidia_triton.inference.request.duration_us.count**(count)           | Cumulative inference request duration in microseconds (includes cached requests)*Shown as microsecond*                           |
| **nvidia_triton.inference.request.histogram_us.bucket**(count)         | Histogram of inference request duration in microseconds (bucket)                                                                 |
| **nvidia_triton.inference.request.histogram_us.count**(count)          | Histogram of inference request duration in microseconds (count)                                                                  |
| **nvidia_triton.inference.request.histogram_us.sum**(count)            | Histogram of inference request duration in microseconds (sum)*Shown as microsecond*                                              |
| **nvidia_triton.inference.request.summary_us.count**(count)            | Summary of inference request duration in microseconds (count) (includes cached requests)*Shown as microsecond*                   |
| **nvidia_triton.inference.request.summary_us.quantile**(gauge)         | Summary of inference request duration in microseconds (quantile) (includes cached requests)*Shown as microsecond*                |
| **nvidia_triton.inference.request.summary_us.sum**(count)              | Summary of inference request duration in microseconds (sum) (includes cached requests)*Shown as microsecond*                     |
| **nvidia_triton.inference.request_failure.count**(count)               | Number of failed inference requests, all batch sizes                                                                             |
| **nvidia_triton.inference.request_success.count**(count)               | Number of successful inference requests, all batch sizes                                                                         |
| **nvidia_triton.llm.input_token_len.bucket**(count)                   | Histogram of TensorRT-LLM input token length per request, by response_metric_type (bucket)                                       |
| **nvidia_triton.llm.input_token_len.count**(count)                    | Histogram of TensorRT-LLM input token length per request, by response_metric_type (count)                                        |
| **nvidia_triton.llm.input_token_len.sum**(count)                      | Histogram of TensorRT-LLM input token length per request, by response_metric_type (sum)*Shown as token*                          |
| **nvidia_triton.llm.output_token_len.bucket**(count)                  | Histogram of TensorRT-LLM output token length per request, by response_metric_type (bucket)                                      |
| **nvidia_triton.llm.output_token_len.count**(count)                   | Histogram of TensorRT-LLM output token length per request, by response_metric_type (count)                                       |
| **nvidia_triton.llm.output_token_len.sum**(count)                     | Histogram of TensorRT-LLM output token length per request, by response_metric_type (sum)*Shown as token*                         |
| **nvidia_triton.model.load.duration_secs**(gauge)                      | Model load time in seconds*Shown as second*                                                                                      |
| **nvidia_triton.pinned_memory.pool.total_bytes**(gauge)               | Pinned memory pool total memory size, in bytes*Shown as byte*                                                                    |
| **nvidia_triton.pinned_memory.pool.used_bytes**(gauge)                | Pinned memory pool used memory size, in bytes*Shown as byte*                                                                     |
| **nvidia_triton.trt_llm.disaggregated_serving_metrics.count**(count) | TensorRT-LLM disaggregated serving metrics, by disaggregated_serving_type (request_count, kv_cache_transfer_ms)                  |
| **nvidia_triton.trt_llm.general_metrics**(gauge)                      | TensorRT-LLM general metrics, by general_type (iteration_counter, timestamp)                                                     |
| **nvidia_triton.trt_llm.inflight_batcher_metrics**(gauge)            | TensorRT-LLM in-flight batcher metrics, by inflight_batcher_specific_metric                                                      |
| **nvidia_triton.trt_llm.kv_cache_block_metrics**(gauge)             | TensorRT-LLM KV cache blocks, by kv_cache_block_type (max, free, used, tokens_per, fraction)                                     |
| **nvidia_triton.trt_llm.request_metrics**(gauge)                      | TensorRT-LLM request counts, by request_type (active, max, scheduled, context, waiting)*Shown as request*                        |
| **nvidia_triton.trt_llm.runtime_memory_metrics**(gauge)              | TensorRT-LLM runtime memory usage, by memory_type (cpu, gpu, pinned)*Shown as byte*                                              |
| **nvidia_triton.trt_llm.v1_metrics**(gauge)                           | TensorRT-LLM V1 batching metrics, by v1_specific_metric                                                                          |

### Events{% #events %}

The Nvidia Triton integration does not include any events.

### Service Checks{% #service-checks %}

The Nvidia Triton integration includes two service checks.

**nvidia_triton.openmetrics.health**

Returns `CRITICAL` if the Agent is unable to connect to the Nvidia Triton OpenMetrics endpoint, otherwise returns `OK`.

*Statuses: ok, critical*

**nvidia_triton.health.status**

Returns `CRITICAL` if the Server is having a 4xx or 5xx response, `OK` if the response is 200, and `unknown` for everything else.

*Statuses: ok, warning, critical*

### Logs{% #logs %}

The Nvidia Triton integration can collect logs from the Nvidia Triton server and forward them to Datadog.

{% tab title="Host" %}

1. Collecting logs is disabled by default in the Datadog Agent. Enable it in your `datadog.yaml` file:

   ```yaml
   logs_enabled: true
   ```

1. Uncomment and edit the logs configuration block in your `nvidia_triton.d/conf.yaml` file. Here's an example:

   ```yaml
   logs:
     - type: docker
       source: nvidia_triton
       service: nvidia_triton
   ```

{% /tab %}

{% tab title="Kubernetes" %}
Collecting logs is disabled by default in the Datadog Agent. To enable it, see [Kubernetes Log Collection](https://docs.datadoghq.com/agent/kubernetes/log.md#setup).

Then, set Log Integrations as pod annotations. This can also be configured with a file, a configmap, or a key-value store. For more information, see the configuration section of [Kubernetes Log Collection](https://docs.datadoghq.com/agent/kubernetes/log.md#configuration).

**Annotations v1/v2**

```yaml
apiVersion: v1
kind: Pod
metadata:
  name: nvidia_triton
  annotations:
    ad.datadoghq.com/apache.logs: '[{"source":"nvidia_triton","service":"nvidia_triton"}]'
spec:
  containers:
    - name: ray
```

{% /tab %}

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
