kube-prometheus
kube-prometheus copied to clipboard
Add windows support using Hostprocess instead of static_configs for the nodes
What is missing? There are docs on how to configure for windows: https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/windows.md
Currently, Windows does not support running with windows_exporter in a pod so this add on uses additional scrape configuration to set up a static config to scrape the node ports where windows_exporter is configured.
This is no longer valid statement with the hostprocess support added in windows exporter: https://github.com/prometheus-community/windows_exporter/pull/864
Why do we need it? Makes windows configuration dynamic instead of needing to know the ip addresses of the nodes up front
Environment
-
kube-prometheus version:
Insert Git SHA here
Anything else we need to know?:
Requires:
- Kuberentes 1.22+
- containerd 1.6 Beta+
- WindowsHostProcessContainers feature-gate (currently in alpha in 1.22 going beta in 1.23) turned on for kube-apiserver and kubelet if using Kubernetes 1.22
There are some docs to do this manually here: https://github.com/prometheus-community/windows_exporter/blob/master/kubernetes/kubernetes.md#prometheus-podmonitor
We should update our examples and documentation then
Any progress on this? I need to set this up in our windows nodepool.