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

# DownloadMonitor Custom Resource Definition

`DownloadMonitor` Custom Resource (CR) deploys the Download Monitor probe. The probe executes HTTP GET requests in the cluster environment and exposes the results as Prometheus metrics.

Using the `DownloadMonitor` CR, you can configure:

- Pod and container selection
- Download test configurations, sources, and targets
- Test interval and timeout settings

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

## Configuration example

This is a sample `DownloadMonitor` CR that you can use to monitor download performance from a pod:

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: DownloadMonitor
metadata:
  name: download-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 download tests every 30 seconds
  timeout: 60s      # Abort requests that take longer than 60 seconds
  configurations:
    - name: All Interfaces
      source: 0.0.0.0      # Bind to all network interfaces
      nameserver: 8.8.8.8  # DNS resolver for target addresses
      targets:
        - address: https://google.com
          labels:
            public: "true"  # Custom Prometheus label for this target
          name: Google Website
          nameserver: 8.8.8.8  # Override DNS resolver for this target
```

## Configuration parameters

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

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

## Read more

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