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

# SpeedtestMonitor Custom Resource Definition

`SpeedtestMonitor` Custom Resource (CR) deploys the Speedtest Monitor probe. The probe executes [Ookla speedtest](https://www.speedtest.net/) measurements in the cluster environment and exposes the results as Prometheus metrics.

Using the `SpeedtestMonitor` CR, you can configure:

- Pod and container selection
- Speedtest configurations, sources, and server selection
- Test interval and timeout settings

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

## Configuration example

This is a sample `SpeedtestMonitor` CR that you can use to monitor network bandwidth from a pod:

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: SpeedtestMonitor
metadata:
  name: speedtest-monitor-sample
spec:
  podSelector:
    labels:
      app: nginx    # Select the pod to inject the probe into
  container: nginx  # Container within the pod to use
  interval: 1h      # Run a speedtest every hour
  timeout: 5m       # Abort runs that take longer than 5 minutes
  configurations:
    - name: Nearest server
      source: 0.0.0.0         # Bind to all network interfaces
    - name: Pinned server
      sourceInterface: eth0   # Bind to the live address of eth0 on every run
      serverID: 12345         # Test against a specific Ookla server
    - name: Custom server
      sourceInterface: eth0
      serverURL: "https://speedtest.example.com:8080"  # Test against a custom speedtest server
```

## Configuration parameters

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

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

## Read more

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