Skip to content

podMonitor

podMonitor objects to be generated by the chart. Additional PodMonitors can be added by adding a dictionary key similar to the ‘main’ PodMonitor.

object

Keys are identifiers for podMonitor instances.

podMonitor:
main:
enabled: true
# ... configuration
secondary:
enabled: true
# ... configuration

Available properties:

PropertyTypeRequiredDefaultDescription
annotationsobject / nullNo-Annotations to set on the item.
controllerobjectNo-Controller whose pods to monitor.
enabledbooleanNotrueSet to false to disable the PodMonitor.
forceRenamestringNo-Override the default resource name. Mutually exclusive wi…
jobLabelstringNoapp.kubernetes.io/nameThe label to use to retrieve the job name from the target…
labelsobject / nullNo-Labels to set on the item.
podMetricsEndpointsarrayNo-Pod metrics endpoints allowed as part of this PodMonitor…
podTargetLabelsarrayNo-Transfers labels from the Kubernetes Pod onto the created…
prefixstringNoPrefix to prepend to the resource name. Mutually exclusiv…
selectorobjectNo-Selector to select Pod objects.
suffixstringNo-Suffix to append to the resource name. Defaults to the re…

Override the default resource name. Mutually exclusive with prefix and suffix.

The label to use to retrieve the job name from the target pod’s metadata. Defaults to ‘app.kubernetes.io/name’. Helm templates can be used.

Pod metrics endpoints allowed as part of this PodMonitor. Typical fields per endpoint include port, scheme, path, interval, scrapeTimeout. See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#podmetricsendpoint for the full schema.

Transfers labels from the Kubernetes Pod onto the created metrics. See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#podmonitorspec for details.

Prefix to prepend to the resource name. Mutually exclusive with forceRename.

Suffix to append to the resource name. Defaults to the resource identifier if there are multiple items, otherwise empty. Mutually exclusive with forceRename.