Closed averevki closed 11 months ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: averevki Once this PR has been reviewed and has the lgtm label, please assign philbrookes for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
@averevki This change might conflict with, or already be solved by the Service/ServiceMonitor in https://github.com/Kuadrant/multicluster-gateway-controller/tree/main/config/prometheus
Those resources are used by https://github.com/Kuadrant/multicluster-gateway-controller/blob/main/hack/quickstart-metrics.sh in this metrics walkthrough
What problem are you seeing that led to you needing the change in this PR?
@averevki This change might conflict with, or already be solved by the Service/ServiceMonitor in https://github.com/Kuadrant/multicluster-gateway-controller/tree/main/config/prometheus
Those resources are used by https://github.com/Kuadrant/multicluster-gateway-controller/blob/main/hack/quickstart-metrics.sh in this metrics walkthrough
What problem are you seeing that led to you needing the change in this PR?
There was a problem where mgc-controller-manager
was exposing the port under metrics
name, but mgc-controller-manager-metrics-service
service was targeting the port under the name https
, so no metrics appeared. I see it as a simple port name mistake
It looks like everything is pointing to the metrics port in the Prometheus config that you sent. So I suppose it is only in mgc-controller-manager-metrics-service
.
It is possible that mgc-controller-manager-metrics-service
is not present anymore and the issue is already irrelevant. But if it is and Prometheus is supposed to be used with metrics port, do you know the intended use-case for this metrics service? Thanks
do you know the intended use-case for this metrics service
It looks like it should have been removed. See comment thread https://github.com/Kuadrant/multicluster-gateway-controller/pull/389#discussion_r1284163440 and the (probably incorrectly closed automatically, but I now reopened) issue https://github.com/Kuadrant/multicluster-gateway-controller/issues/411
It looks like it should have been removed. See comment thread #389 (comment) and the (probably incorrectly closed automatically, but I now reopened) issue #411
I see... Then this PR is irrelevant and feel free to close it. Thank you for the explanation :+1:
Fix mapping for metrics service port: https://github.com/Kuadrant/multicluster-gateway-controller/blob/aa223edcfff267b738e63f0ac4798725a1bfeeff/config/default/manager_metrics_patch.yaml#L19-L21