-
I'm working on getting Windows K8s integrated with my kube-prom deployment. I've deployed a pretty standard AKS cluster and kube-prometheus deployment. I've added a Windows node pool and used windows_exporter to get a node exporter running on Windows. I have it working and I now see metrics on each of the Windows nodes at :9100/metrics. I can give more detail on how I got this working in k8s if needed. Now I just need to get my prometheus to scrape metrics from these nodes. Is there any special config needed so that these endpoints are also included? When I add Linux nodepools, they are automatically picked up, but these Windows nodes are not. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
You will need to add a |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm also trying to do the same. Given that the windows exporter is running directly on the windows node (not in a container), how did you manage to expose those endpoints via service and service-monitor? Can you please share? thank you so much! |
Beta Was this translation helpful? Give feedback.
-
Hi @chzbrgr71 I'm curious to find out how you managed to get the windows-exporter running in K8s. My approach:
are you using a different approach? |
Beta Was this translation helpful? Give feedback.
-
I created a PR with a similar approach, but it does not work as expected. You can read the full discussion below, but the container only gets metrics from the OS in the container, not the host OS. prometheus-community/windows_exporter#581 |
Beta Was this translation helpful? Give feedback.
-
We have a WIP addon exactly for this in #911 |
Beta Was this translation helpful? Give feedback.
You will need to add a
Service
andServiceMonitor
to discover and scrape the targets.