---
name: "rte_metric_value"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_metric_value"
---

# rte\_metric\_value(3)

## NAME

rte\_metric\_value

## SYNOPSIS

`#include <rte_metrics.h>`

### Data Fields

uint16\_t **key**\
 uint64\_t **value**\

## Detailed Description

Metric value structure.

This structure is used by **rte\_metrics\_get\_values()** to return metrics, which are statistics that are not generated by PMDs. It maps a name key, which corresponds to an index in the array returned by **rte\_metrics\_get\_names()**.

Definition at line **68** of file **rte\_metrics.h**.

## Field Documentation

### uint16\_t key

Numeric identifier of metric.

Definition at line **70** of file **rte\_metrics.h**.

### uint64\_t value

Value for metric

Definition at line **72** of file **rte\_metrics.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
