prometheus operator v0.93.1

ServiceMonitor.spec.endpoints.targetPort

targetPort defines the name or number of a container port on Pods selected by the Service. If a name, it matches against `.spec.containers[].ports[].name` of the Pods. If a number, it matches against `.spec.containers[].ports[].containerPort` of the Pods.

1 fields
ServiceMonitor.spec.endpoints.targetPort fields and descriptions
Field / TypeDescription
ServiceMonitor.spec.endpoints.targetPort
integer | string

targetPort defines the name or number of a container port on Pods selected by the Service. If a name, it matches against `.spec.containers[].ports[].name` of the Pods. If a number, it matches against `.spec.containers[].ports[].containerPort` of the Pods.

  • x-kubernetes-int-or-string: true