MTRMonitor Custom Resource Definition
MTRMonitor Custom Resource (CR) deploys the MTR Monitor probe. The probe executes My Traceroute (MTR) tests in the cluster environment and exposes the results as Prometheus metrics.
Using the MTRMonitor CR, you can configure:
- Pod and container selection
- MTR test configurations, sources, and targets
- Test interval, timeout, hop count, and packet settings
For more information, see MTR Monitor.
Configuration example
This is a sample MTRMonitor CR that you can use to monitor network path performance from a pod:
Configuration parameters
These are all parameters that you can use to configure the MTRMonitor CR:
- MTRMonitorKind
- npp.cennso.comGroup
- v1alpha1Version
- apiVersion:
- npp.cennso.com/v1alpha1
- kind:
- MTRMonitor
- listKind:
- MTRMonitorList
- plural:
- mtrmonitors
- singular:
- mtrmonitor
- categories:
- [cennso]
apiVersionstringrequiredConstant"npp.cennso.com/v1alpha1"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More information: Kubernetes API conventionsOpens in a new tab.kindstringrequiredConstant"MTRMonitor"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More information: Kubernetes API conventionsOpens in a new tab.metadataobjectrequiredStandard object metadata. More information: ObjectMetaOpens in a new tab.specobjectMTRMonitorSpec defines the desired state of the MTRMonitor Custom Resource.configurationsobject[]requiredList of test configurationsintervalstringrequiredDefault time interval for MTR testspodSelectorobjectrequiredPodSelectormust point to a single monitored pod. If it matches more or fewer pods, the probe will fail.timeoutstringrequiredDefault time interval after which MTR tests time outcontainerstringContainerspecifies the name of the Pod container that the probe is injected into. If not set, the random container is used.imagePullSecretsobject[]imagePullSecretsholds the proper container registry credentials.x-kubernetes-list-map-keysx-kubernetes-list-typeinitProbeImagestringinitProbeImageoverrides the container image for the init probe container.initProbeImagePullPolicystringInitProbeImagePullPolicyspecifies if or when to pull a container image for probe init.Allowed values:"IfNotPresent""Always""Never"logLevelstringDescribes the logging level for NPP.Allowed values:"debug""info""warn""error"metricsProxyImagestringmetricsProxyImageoverrides the container image for a metrics proxy.metricsProxyImagePullPolicystringmetricsProxyImagePullPolicyspecifies the image pull policy if/when to pull a container image for a metrics proxy.Allowed values:"IfNotPresent""Always""Never"probeImagestringProbeImageoverrides the container image for the probe.probeImagePullPolicystringProbeImagePullPolicyspecifies if or when to pull a container image for a probe.Allowed values:"IfNotPresent""Always""Never"serviceAccountNamestringserviceAccountNamespecifies the name of the ServiceAccount which should be used for managing the probe.tolerationsobject[]Kubernetes tolerations set on the pods
statusobjectMTRMonitorStatus defines the observed state of the MTRMonitor Custom Resource.conditionsobject[]Represents the observations of the current state of this Custom Resource.x-kubernetes-list-map-keysx-kubernetes-list-type