> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/npp/3.0/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/3.0/technical-reference/probe.cennso.com_pingmonitors.md).

# PingMonitor

PingMonitor Custom Resource deploys the Ping Monitor probe. The probe is used for executing ping tests in the cluster environment and exposing results as Prometheus metrics.

| Name | Type | Description | Required |
|---|---|---|---|
| apiVersion | string | probe.cennso.com/v1alpha1 | true |
| kind | string | PingMonitor | true |
| [metadata](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta) | object | Refer to the Kubernetes API documentation for the fields of the `metadata` field. | true |
| spec |object |PingMonitorSpec defines the desired state of the PingMonitor Custom Resource. |false |
| status |object |PingMonitorStatus defines the observed state of the PingMonitor Custom Resource. |false |

## spec

Used by:
- [PingMonitor](#pingmonitor)

PingMonitorSpec defines the desired state of the PingMonitor Custom Resource.

| Name | Type | Description | Required |
|---|---|---|---|
| configurations |[]object |List of test configurations |true |
| interval |string |Default time interval for ping requests |true |
| podSelector |object |`PodSelector` must point to a single monitored pod. If it matches more or fewer pods, the probe will fail. |true |
| timeout |string |Default time interval after which ping requests time out |true |
| container |string |`Container` specifies the name of the Pod container that the probe is injected into. If not set, the random container is used. |false |
| imagePullSecrets |[]object |`imagePullSecrets` holds the proper container registry credentials. |false |
| initProbeImage |string |`initProbeImage` overrides the container image for the init probe container. |false |
| initProbeImagePullPolicy |enum |`InitProbeImagePullPolicy` specifies if or when to pull a container image for probe init.  *Enum*: IfNotPresent, Always, Never |false |
| logLevel |enum |Describes the logging level for NPP.  *Enum*: debug, info, warn, error  *Default*: info |false |
| metricsProxyImage |string |`metricsProxyImage` overrides the container image for a metrics proxy. |false |
| metricsProxyImagePullPolicy |enum |`metricsProxyImagePullPolicy` specifies the image pull policy if/when to pull a container image for a metrics proxy.  *Enum*: IfNotPresent, Always, Never |false |
| probeImage |string |`ProbeImage` overrides the container image for the probe. |false |
| probeImagePullPolicy |enum |`ProbeImagePullPolicy` specifies if or when to pull a container image for a probe.  *Enum*: IfNotPresent, Always, Never |false |
| serviceAccountName |string |`serviceAccountName` specifies the name of the ServiceAccount which should be used for managing the probe. |false |
| tolerations |[]object |Kubernetes tolerations set on the pods |false |

### configurations

Used by:
- [spec](#spec-a238379)

| Name | Type | Description | Required |
|---|---|---|---|
| source |string |Address of the interface to which the tests will be attached. |true |
| targets |[]object |List of targets the test will be checking |true |
| interval |string |Time interval for ping requests, if not set the default one will be used. |false |
| name |string |A name of the configuration. |false |
| nameserver |string |A nameserver for resolving addresses, if not set the system's default one will be used. |false |
| timeout |string |Time interval after which ping requests time out, if not set the default one will be used. |false |

#### targets

Used by:
- [configurations](#configurations-da39a3e)

| Name | Type | Description | Required |
|---|---|---|---|
| address |string |Address of the target |true |
| name |string |Name of the target |true |
| labels |map[string]string |List of labels applied to the metrics |false |
| nameserver |string |Nameserver for resolving addresses, if not set the one from **.spec.configurations.nameserver** will be used. |false |

### podSelector

Used by:
- [spec](#spec-a238379)

`PodSelector` must point to a single monitored pod. If it matches more or fewer pods, the probe will fail.

| Name | Type | Description | Required |
|---|---|---|---|
| labels |map[string]string |Label query over a set of resources, in this case, pods. |false |
| namespace |string |`namespace` specifies to which namespace the Labels apply (match against); empty means "this probe's namespace" |false |

### imagePullSecrets

Used by:
- [spec](#spec-a238379)

LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace or in a cluster-wide scope.

| Name | Type | Description | Required |
|---|---|---|---|
| name |string | |true |

### tolerations

Used by:
- [spec](#spec-a238379)

The pod this Toleration is attached to tolerates any taint that matches
the triple <key,value,effect> using the matching operator <operator>.

| Name | Type | Description | Required |
|---|---|---|---|
| effect |string |Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. |false |
| key |string |Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. |false |
| operator |string |Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. |false |
| tolerationSeconds |integer |TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.  *Format*: int64 |false |
| value |string |Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. |false |

## status

Used by:
- [PingMonitor](#pingmonitor)

PingMonitorStatus defines the observed state of the PingMonitor Custom Resource.

| Name | Type | Description | Required |
|---|---|---|---|
| conditions |[]object |Current conditions state of the probe. |false |

### conditions

Used by:
- [status](#status-92ec8b6)

`Condition` contains details for the current condition of this probe.

| Name | Type | Description | Required |
|---|---|---|---|
| lastTransitionTime |string |Last time the condition transitioned from one status to another  *Format*: date-time |true |
| reason |string |Unique, one-word, CamelCase reason for the condition's last transition |true |
| status |string |Indicates whether that condition is applicable, with possible values `True`, `False`, `Unknown`. |true |
| type |string |Name of the condition |true |
| message |string |Human-readable message indicating details about the last transition |false |
