Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keda-metrics-apiserver ServiceMonitor port #221

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

jkyros
Copy link
Contributor

@jkyros jkyros commented Mar 8, 2024

In our 2.11.2 release #205 we:

  • retired the 9022 metrics port, and replaced it with 8080, the old http port.
  • updated the service with the port name "metrics"

However:

  • it looks like we missed updating the ServiceMonitor, which still references the port as "http"
  • the prometheus target for keda-metrics-apiserver isn't working because it can't find a port named "http" anymore.

Therefore:

  • This updates the ServiceMonitor so the servicemonitor port name matches the service port name.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO)

Fixes #

In our 2.11.2 release we retired the old 9022 metrics port, which was
superseded by port 8080. We updated the service with the port name
"metrics", but it looks like we missed updating the ServiceMonitor,
which still had it listed as "http" -- resulting in the prometheus
target not working.

This updates the ServiceMonitor so the port name matches the service,
and the tubes are properly connected and "metrics" will be a valid
prometheus target for keda-metrics-apiserver.

Signed-off-by: John Kyros <jkyros@redhat.com>
@jkyros jkyros requested a review from zroubalik as a code owner March 8, 2024 21:12
@joelsmith joelsmith merged commit 2325627 into kedacore:main Mar 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants