> 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_mtrmonitors.md).

# MTRMonitor Custom Resource Definition

`MTRMonitor` Custom Resource (CR) deploys the MTR Monitor probe. The probe executes My Traceroute (MTR) tests in the cluster environment and exposes the results as Prometheus metrics.

Using the `MTRMonitor` CR, you can configure:

- Pod and container selection
- MTR test configurations, sources, and targets
- Test interval, timeout, hop count, and packet settings

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

## Configuration example

This is a sample `MTRMonitor` CR that you can use to monitor network path performance from a pod:

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: MTRMonitor
metadata:
  name: mtr-monitor-sample
spec:
  podSelector:
    labels:
      app: nginx    # Select the pod to inject the probe into
  container: nginx  # Container within the pod to use
  interval: 30s     # Run MTR tests every 30 seconds
  timeout: 5s       # Abort tests that take longer than 5 seconds
  configurations:
    - name: MTR from any interface
      source: 0.0.0.0    # Bind to all network interfaces
      packets: 1         # Number of ping probes sent per hop
      maxUnknownHops: 5  # Stop after 5 successive unresponsive hops
      hopSleep: 10ms     # Wait between sending ping packets
      maxHops: 10        # Trace up to 10 hops
      targets:
        - address: 8.8.8.8
          name: Google DNS server
```

## Configuration parameters

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

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

## Read more

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