> 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/guides/deploy-monitors.md).

# Deploy a monitor

Monitors run continuously and collect measurements on a schedule. NPP provides four monitor types:

- `PingMonitor` — continuous ICMP ping probe
- `MTRMonitor` — continuous MTR traceroute probe
- `DownloadMonitor` — continuous download throughput probe
- `SpeedtestMonitor` — continuous [Ookla speedtest](https://www.speedtest.net/) probe

Monitors expose results as Prometheus metrics. You can visualize them in Grafana using the dashboards provided by the NPP Support chart.

## Prerequisites

- [NPP installed](https://docs.cennso.com/components/npp/latest/installation.md) on the Core Cluster
- [NPP Support installed](https://docs.cennso.com/components/npp/latest/installation.md#npp-support-installation-steps) on the Management Cluster
- `kubectl`
- Grafana accessible in your environment

## Steps

1. Create a namespace for your probe:

   ```bash
   kubectl create namespace {NAMESPACE}
   ```

2. Deploy the target application:

   ```bash
   kubectl create deployment nginx --image=nginx --namespace {NAMESPACE}
   ```

3. Create a CR manifest for your monitor. See the **Technical Reference** for a configuration example:

   - [PingMonitor](https://docs.cennso.com/components/npp/latest/technical-reference/npp.cennso.com_pingmonitors.md#configuration-example)
   - [MTRMonitor](https://docs.cennso.com/components/npp/latest/technical-reference/npp.cennso.com_mtrmonitors.md#configuration-example)
   - [DownloadMonitor](https://docs.cennso.com/components/npp/latest/technical-reference/npp.cennso.com_downloadmonitors.md#configuration-example)
   - [SpeedtestMonitor](https://docs.cennso.com/components/npp/latest/technical-reference/npp.cennso.com_speedtestmonitors.md#configuration-example)

4. Apply the CR to the cluster:

   ```bash
   kubectl apply --namespace {NAMESPACE} -f {FILENAME}.yaml
   ```

## Verification

Run the following command to check the status of your monitors:

```bash
kubectl get \
  pingmonitors.npp.cennso.com,\
  mtrmonitors.npp.cennso.com,\
  downloadmonitors.npp.cennso.com,\
  speedtestmonitors.npp.cennso.com \
  --namespace {NAMESPACE}
```

When a monitor is ready, the output shows `True` in the `CONFIGURED`, `DEPLOYED`, and `READY` columns:

```text
NAME                       CONFIGURED   DEPLOYED   READY   AGE
ping-monitor-sample        True         True       True    1m
mtr-monitor-sample         True         True       True    1m
download-monitor-sample    True         True       True    1m
speedtest-monitor-sample   True         True       True    1m
```

## View results in Grafana

NPP Support installs Grafana dashboards for the Ping, MTR, and Download monitors. The dashboards are available in the **Cennso** folder in Grafana.

1. Open Grafana and navigate to the **Cennso** folder.

2. Select the dashboard for your monitor type:

   - **NPP / Monitors / Ping** — for `PingMonitor` probes
   - **NPP / Monitors / MTR** — for `MTRMonitor` probes
   - **NPP / Monitors / Download** — for `DownloadMonitor` probes

Each dashboard contains these panels: **Overview**, **Probe overview**, **Details**, and three metric-specific panels showing loss rate, speed or response time, and failures.
