Open luismiguelsaez-steercrm opened 1 week ago
@krisztianfekete Can you take a look at this and triage?
Thanks for opening the issue!
Yes, the port definitions are missing and those are required for PodMonitors and ServiceMonitors. It's a simple Helm template change, would you be up for contributing this to the project?
For the time being, you can scrape the pods via annotations as those are present. If you are using e.g. kube-promethues-stack
, you can use additionalScrapeConfigs
to provide this as a workaround.
Thanks for looking into it! I will prepare the PR to include that change into the templates.
Gloo Edge Product
Open Source
Gloo Edge Version
v1.17.0-rc8
Is your feature request related to a problem? Please describe.
We want to scrape Prometheus metrics, but there's no way to add the port mapping to the
gateway-proxy
pods. Here is the currentpodTemplate
from the Helm valuesWithout a proper port specification in the pod, the Prometheus
PodMonitor
orServiceMonitor
doesn't work, as it is required.Describe the solution you'd like
The solution would be to add the stats port to the
podTemplate
, like this:and add it to the
Pod
specification in the corresponding Helm template, so it is rendered as:That way, the port can be referenced from a
PodMonitor
or aService
, which later can be used from aServiceMonitor
.Describe alternatives you've considered
No response
Additional Context
No response