Can't view metrics-server logs in log analysis
What happened:
Is it possible to collect logs from the metric-server?
I got the Prometheus scrape config from here https://raw.githubusercontent.com/microsoft/Docker-Provider/ci_prod/kubernetes/container-azm-ms-agentconfig.yaml
I followed https://docs.microsoft.com/en-us/azure/azure-monitor/insights/container-insights-prometheus-integration and added
Kubernetes_services = ["https://metrics-server.kube-system.svc.cluster.local/metrics"]
and applied to my cluster but I don't see the logs in the log analysis. I also did what was listed here https://github.com/Azure/AKS/issues/990#issuecomment-515796746 but that didn't work either
What you expected to happen: metric_server logs would appear in Log Analytics
How to reproduce it (as minimally and precisely as possible):
-
Set up aks
-
Enabled logging
-
Download container-azm-ms-agentconfig.yaml and add in Kubernetes_services = ["https://metrics-server.kube-system.svc.cluster.local/metrics"]. Apply to cluster
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version): - Size of cluster (how many worker nodes are in the cluster?)
- General description of workloads in the cluster (e.g. HTTP microservices, Java app, Ruby on Rails, machine learning, etc.)
- Others:
Hi di669, AKS bot here :wave: Thank you for posting on the AKS Repo, I'll do my best to get a kind human from the AKS team to assist you.
I might be just a bot, but I'm told my suggestions are normally quite good, as such:
- If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
- Please abide by the AKS repo Guidelines and Code of Conduct.
- If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
- Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
- Make sure there isn't a duplicate of this issue already reported. If there is, feel free to close this one and '+1' the existing issue.
- If you have a question, do take a look at our AKS FAQ. We place the most common ones there!
Triage required from @Azure/aks-pm
Action required from @Azure/aks-pm
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
@vishiy, @saaror would you be able to assist?
Issue Details
What happened:
Is it possible to collect logs from the metric-server?
I got the Prometheus scrape config from here https://raw.githubusercontent.com/microsoft/Docker-Provider/ci_prod/kubernetes/container-azm-ms-agentconfig.yaml
I followed https://docs.microsoft.com/en-us/azure/azure-monitor/insights/container-insights-prometheus-integration and added
Kubernetes_services = ["https://metrics-server.kube-system.svc.cluster.local/metrics"]
and applied to my cluster but I don't see the logs in the log analysis. I also did what was listed here https://github.com/Azure/AKS/issues/990#issuecomment-515796746 but that didn't work either
What you expected to happen: metric_server logs would appear in Log Analytics
How to reproduce it (as minimally and precisely as possible):
-
Set up aks
-
Enabled logging
-
Download container-azm-ms-agentconfig.yaml and add in Kubernetes_services = ["https://metrics-server.kube-system.svc.cluster.local/metrics"]. Apply to cluster
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version): - Size of cluster (how many worker nodes are in the cluster?)
- General description of workloads in the cluster (e.g. HTTP microservices, Java app, Ruby on Rails, machine learning, etc.)
- Others:
| Author: | di669 |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
Action required from @Azure/aks-pm
Are you referring to metric-server logs or metrics? If you are trying to scrape Prometheus metrics it is not going to cover logs, it is going to cover metrics.
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads