AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Can't view metrics-server logs in log analysis

Open di669 opened this issue 6 years ago • 24 comments

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:

di669 avatar Oct 29 '20 21:10 di669

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:

  1. If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
  2. Please abide by the AKS repo Guidelines and Code of Conduct.
  3. If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
  4. Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
  5. 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.
  6. If you have a question, do take a look at our AKS FAQ. We place the most common ones there!

ghost avatar Oct 29 '20 21:10 ghost

Triage required from @Azure/aks-pm

ghost avatar Nov 01 '20 00:11 ghost

Action required from @Azure/aks-pm

ghost avatar Nov 06 '20 01:11 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Nov 21 '20 06:11 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Dec 06 '20 12:12 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Dec 21 '20 18:12 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jan 06 '21 00:01 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jan 21 '21 06:01 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Feb 05 '21 06:02 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Feb 20 '21 12:02 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Mar 07 '21 18:03 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Mar 23 '21 00:03 ghost

@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:

Needs Attention :wave:, action-required, azure/log-analytics, triage

Milestone: -

ghost avatar Mar 23 '21 13:03 ghost

Action required from @Azure/aks-pm

ghost avatar Apr 22 '21 19:04 ghost

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.

saaror avatar Apr 22 '21 19:04 saaror

Issue needing attention of @Azure/aks-leads

ghost avatar May 08 '21 00:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 23 '21 06:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 07 '21 12:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 22 '21 18:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jul 08 '21 00:07 ghost