prometheus operator v0.93.1
PodMonitor.spec.podMetricsEndpoints[].port
port defines the `Pod` port name which exposes the endpoint. If the pod doesn't expose a port with the same name, it will result in no targets being discovered. If a `Pod` has multiple `Port`s with the same name (which is not recommended), one target instance per unique port number will be generated. It takes precedence over the `portNumber` and `targetPort` fields.
| Field / Type | Description |
|---|---|
PodMonitor.spec.podMetricsEndpoints[].port | port defines the `Pod` port name which exposes the endpoint. If the pod doesn't expose a port with the same name, it will result in no targets being discovered. If a `Pod` has multiple `Port`s with the same name (which is not recommended), one target instance per unique port number will be generated. It takes precedence over the `portNumber` and `targetPort` fields. |