> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/npp/latest/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/latest/technical-reference/npp.cennso.com_mtrtests.md).

# MTRTest Custom Resource Definition

`MTRTest` Custom Resource (CR) deploys the MTR Test probe. The probe executes a single My Traceroute (MTR) test in the cluster environment and stores hop-by-hop results in the CR `status.output` field in Prometheus exposition format.

Using the `MTRTest` CR, you can configure:

- Pod and container selection
- MTR test configurations, sources, and targets
- Path MTU discovery
- Test timeout settings

For more information, see [MTR Test](https://docs.cennso.com/components/npp/latest/concepts/mtr-test.md).

## Configuration example

This is a sample `MTRTest` CR that you can use to trace the network path from a pod:

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: MTRTest
metadata:
  name: mtr-test-sample
spec:
  podSelector:
    labels:
      app: nginx    # Select the pod to inject the probe into
  container: nginx  # Container within the pod to use
  timeout: 30s      # Abort tests that take longer than 30 seconds
  configurations:
    - name: MTR from any interface
      source: 0.0.0.0   # Bind to all network interfaces
      maxHops: 30       # Trace at most 30 hops
      packets: 3        # Send 3 probes per hop
      targets:
        - address: 8.8.8.8
          name: Google DNS
    - name: MTR from the UE interface
      sourceInterface: eth0   # Bind to the live address of eth0
      mtuDiscovery: true      # Also discover the per-hop path MTU
      targets:
        - address: 10.9.0.1
          name: SGi
```

## Configuration parameters

These are all parameters that you can use to configure the `MTRTest` CR:

**CRD specification:** [npp.cennso.com_mtrtests.yaml](https://docs.cennso.com/api/spec/components/npp/latest/assets/crds/npp.cennso.com_mtrtests.yaml?form=bundled&kind=crd)

## Read more

- [MTR Test](https://docs.cennso.com/components/npp/latest/concepts/mtr-test.md)
