> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/npp/3.0/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/npp/3.0/technical-reference/metrics.md).

# Network Performance Probe metrics

Network Performance Probe (NPP) exposes metrics in Prometheus format on the `/metrics` endpoint on port `9100` on every monitor. In tests, it stores metrics in the CR status.

The following metrics are available:

## Download metrics

### download_maximum_speed

**Type:** gauge

Maximum download speed in bytes/s based on the historical results

**Example:** `download_maximum_speed{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 63245.613761115`

**Labels:**
- [common labels](#common-labels)

### download_history_failures_total

**Type:** counter

Number of failures in the history

**Example:** `download_history_failures{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 0`

**Labels:**
- [common labels](#common-labels)

### download_history_total

**Type:** counter

Total number of records in the history

**Example:** `download_history_total{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 10`

**Labels:**
- [common labels](#common-labels)

### download_last_speed

**Type:** gauge

Last successful download speed in bytes/s

**Example:** `download_last_speed{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 62681.3582984132`

**Labels:**
- [common labels](#common-labels)

### download_loss_percent

**Type:** gauge

Packet loss in percent based on the historical results

**Example:** `download_loss_percent{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 0`

**Labels:**
- [common labels](#common-labels)

### download_mean_speed

**Type:** gauge

Mean speed in bytes/s based on the historical results

**Example:** `download_mean_speed{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 56036.20451962781`

**Labels:**
- [common labels](#common-labels)

### download_std_deviation_ms

**Type:** gauge

Standard deviation in bytes/s based on the historical results

**Example:** `download_std_deviation_ms{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 12767.592661516714`

**Labels:**
- [common labels](#common-labels)

### download_minimum_speed

**Type:** gauge

Minimum download speed in bytes/s based on the historical results

**Example:** `download_minimum_speed{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="https://google.com",target_name="Google"} 19355.702971356837`

**Labels:**
- [common labels](#common-labels)

## MTR metrics

### mtr_avg_ms

**Type:** gauge

Average round-trip time of all traceroute probes

**Example:** `mtr_avg_ms{dst="8.8.8.8",hop="01",host="8.8.8.8",namespace="sample",sent="1",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 3.007463`

**Labels:**
- [common labels](#common-labels)

<br>

### mtr_minimum_ms

**Type:** gauge

Minimum round-trip time of all traceroute probes

**Example:** `mtr_minimum_ms{dst="8.8.8.8",hop="01",host="8.8.8.8",namespace="sample",sent="1",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 136.007463`

**Labels:**
- [common labels](#common-labels)

<br>

### mtr_failures_total

**Type:** counter

Total number of failed executions for this target

**Example:** `mtr_failures_total{dst="8.8.8.8",host="8.8.8.8",namespace="sample",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 0`

**Labels:**
- [common labels](#common-labels)

<br>

### mtr_last_ms

**Type:** gauge

Round trip time of the last traceroute probe

**Example:** `mtr_last_ms{dst="8.8.8.8",hop="01",host="8.8.8.8",namespace="sample",sent="1",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 136.007463`

**Labels:**
- [common labels](#common-labels)

<br>

### mtr_loss_percent

**Type:** gauge

Packet loss for this hop

**Example:** `mtr_loss_percent{dst="8.8.8.8",hop="01",host="8.8.8.8",namespace="sample",sent="1",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 0`

**Labels:**
- [common labels](#common-labels)

<br>

### mtr_stdev_ms

**Type:** gauge

Standard deviation probe results for each hop

**Example:** `mtr_stdev_ms{dst="8.8.8.8",hop="01",host="8.8.8.8",namespace="sample",sent="1",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 0`

**Labels:**
- [common labels](#common-labels)

<br>

### mtr_total

**Type:** counter

Total number of executions for this target

**Example:** `mtr_total{dst="8.8.8.8",host="8.8.8.8",namespace="sample",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 670`

**Labels:**
- [common labels](#common-labels)

<br>

### mtr_maximum_ms

**Type:** gauge

Maximum round-trip time of all traceroute probes

**Example:** `mtr_maximum_ms{ddst="8.8.8.8",hop="01",host="8.8.8.8",namespace="sample",sent="1",source_ip="0.0.0.0",source_name="sample",src="mtr-monitor-sample",target="8.8.8.8",target_name="Google DNS",tests="1"} 136.007463`

**Labels:**
- [common labels](#common-labels)

<br>

## Ping metrics

### ping_history_failures_total

**Type:** counter

Total number of failures in the history

**Example:** `ping_history_failures_total{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 0`

**Labels:**
- [common labels](#common-labels)

<br>

### ping_history_total

**Type:** counter

Total number of records in the history

**Example:** `ping_history_total{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 1`

**Labels:**
- [common labels](#common-labels)

<br>

### ping_loss_percent

**Type:** gauge

Packet loss in percent based on the historical results

**Example:** `ping_loss_percent{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 0`

**Labels:**
- [common labels](#common-labels)

<br>

### ping_rtt_minimum_ms

**Type:** gauge

Minimum round trip time in milliseconds based on the historical results

**Example:** `ping_rtt_minimum_ms{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 3.933392`

**Labels:**
- [common labels](#common-labels)

<br>

### ping_rtt_mean_ms

**Type:** gauge

Mean round trip time in milliseconds based on the historical results

**Example:** `ping_rtt_mean_ms{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 104.933392`

**Labels:**
- [common labels](#common-labels)

<br>

### ping_rtt_ms

**Type:** gauge

Last successful round trip time in milliseconds

**Example:** `ping_rtt_ms{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 104.933392`

**Labels:**
- [common labels](#common-labels)

<br>

### ping_rtt_std_deviation_ms

**Type:** gauge

Standard deviation in milliseconds based on the historical results

**Example:** `ping_rtt_std_deviation_ms{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 0`

**Labels:**
- [common labels](#common-labels)

<br>

### ping_rtt_maximum_ms

**Type:** gauge

Maximum round trip time in milliseconds based on the historical results

**Example:** `ping_rtt_maximum_ms{monitor="nprobe",namespace="sample",source_ip="0.0.0.0",source_name="sample",target="8.8.8.8",target_name="Google DNS"} 104.933392`

**Labels:**
- [common labels](#common-labels)

<br>

## Common labels

Each metric has the following labels attached:

- `monitor="nprobe"` - label for all probe metrics
- `namespace="{source_pod_namespace}"` - name of the namespace where the tested pod is deployed
- `source_ip="{source_interface_ip_address}"` - IP address of the source interface
- `source_name="{source_interface_name}"` - name of the source interface defined in the probe configuration
- `target="{target_address}"` - address of the target endpoint
- `target_name="{target_name}"` - name of the target endpoint defined in the configuration
