-
Notifications
You must be signed in to change notification settings - Fork 314
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
Enable apiserver metrics #504
Comments
please provide your feature request at https://feedback.azure.com/forums/914020-azure-kubernetes-service-aks |
Fore sake of other readers, this patch file seems to be working for me:
|
@andig How to apply this patch? |
@rnkhouse you can patch the servicemonitor like this:
|
@andig this did not work as expected for me. The patch just removed the apiserver from the targets list in prometheus. The alerts for the API server being down are still firing. Also something to note is that when you install prometheus-operator and kube-prometheus directly from coreos using helm. The servicemonitor for the API server is called Also this is link to monitor this issue in terms AKS feature requests, currently it just points back to this page, but in the future the answer may be here as well: |
Working for me but installed from helm/stable, not from coreos. |
For the operator I was trying the relabeling config like this:
but I can't get it to work, prometheus doesn't restart because:
Anyone managed to get it working? It's driving me nuts! |
@ams0 use sourceLabels and targetLabel. |
This seemed to work for my Prometheus scrape config.
|
In addition to bdschapp's comment, for my installation (running as a pod inside my cluster) I also needed to include this in my scrape config, to pick up files that are automatically provisioned there, to authenticate the TLS connection and to provide authorization creds.
I.e. I added those lines to bdschapp's config. Also, if you happen to be using Prometheus Operator, here's how to get bdschapp's config into your Prometheus: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/additional-scrape-config.md . Note that Prometheus will restart when you do that, so if you are using kubectl's port forwarding to access Prom's UI, you'll need to restart you port forwarding. |
When trying to report on metrics using the prometheus operator, the apiserver isn't reporting any metrics. prometheus-operator/prometheus-operator#1522
There's a related issue for kubedns metrics here #345
The text was updated successfully, but these errors were encountered: