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

# PingMonitor Custom Resource Definition

`PingMonitor` Custom Resource (CR) deploys the Ping Monitor probe. The probe executes ping tests in the cluster environment and exposes the results as Prometheus metrics.

Using the `PingMonitor` CR, you can configure:

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

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

## Configuration example

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

```yaml
apiVersion: npp.cennso.com/v1alpha1
kind: PingMonitor
metadata:
  name: ping-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 ping tests every 30 seconds
  timeout: 5s       # Abort requests that take longer than 5 seconds
  configurations:
    - name: Ping from any interface
      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
          name: Google Website
```

## Configuration parameters

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

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

## Read more

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