You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the podMonitor is enabled for the metrics server it is double scraped. This is because the metrics server podMonitor is only deployed if prometheus.metricServer.enabled and prometheus.metricServer.podMonitor.enabled. But when prometheus.metricServer.enabled is true the metric server deployment spec has the scrape annotations added. If the podMonitor is enabled then the scrape annotations should be dropped to stop the double scraping.
Happy to put up a PR with a fix if you agree this is an issue.
Expected Behavior
The metrics server metrics are only scraped by the podMonitor
Actual Behavior
The metrics server metrics are scraped twice, once because of the podMonitor and once because of the scrape annotations
Steps to Reproduce the Problem
set prometheus.metricServer.enabled: true and prometheus.metricServer.podMonitor.enabled: true
Specifications
KEDA Version:Please elaborate
Platform & Version:Please elaborate
Kubernetes Version:Please elaborate
Scaler(s):Please elaborate
The text was updated successfully, but these errors were encountered:
When the podMonitor is enabled for the metrics server it is double scraped. This is because the metrics server podMonitor is only deployed if
prometheus.metricServer.enabled
andprometheus.metricServer.podMonitor.enabled
. But whenprometheus.metricServer.enabled
is true the metric server deployment spec has the scrape annotations added. If the podMonitor is enabled then the scrape annotations should be dropped to stop the double scraping.Happy to put up a PR with a fix if you agree this is an issue.
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
prometheus.metricServer.enabled: true
andprometheus.metricServer.podMonitor.enabled: true
Specifications
The text was updated successfully, but these errors were encountered: