Define container ports
for MeshMetric so that PodMonitor can consume them
#13281
Labels
kind/improvement
Improvement on an existing feature
triage/accepted
The issue was reviewed and is complete enough to start working on it
Description
PodMonitor
requires a port to be defined so that it can be matched and configure prometheus. For sidecars we can work around this by having a container patch:and then the sidecar shows up:
for
Builtin Gateway
we need to change the controller code:kuma/pkg/plugins/runtime/k8s/controllers/gateway_instance_controller.go
Line 251 in 4df8c07
to generate the ports based on
MeshMetric
.A possible other solution would be to have the Container Patch also patch gateways.
I used https://github.com/prometheus-operator/kube-prometheus?tab=readme-ov-file#quickstart to install prometheus operator.
xrel: #5180 (comment)
The text was updated successfully, but these errors were encountered: