You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, this is intended, though underdocumented. The per-node allocation strategy ignores targets without a Node. In #1828, there were several proposals for how this should work, but they weren't included in the original change to avoid additional complexity. Some also consider using a separate collector for control plane metrics to be the better choice, though this is of course debatable.
I'll update the documentation to make this limitation clear, and if you'd like, we can open a separate ticket to talk about changing it. Is that ok?
Component(s)
target allocator
What happened?
Description
When using Target Allocator in per-node mode, it looks like I'm missing apiserver metrics.
Steps to Reproduce
I have this
ServiceMonitor
declaration (coming from kube-prometheus-stack helm chart):When using Target Allocator in Deployment mode, I have some target in my apiserver job, by when using it in per-node mode, all my targets are empty:
curl http://localhost:8080/jobs/serviceMonitor%2Fmonitoring%2Fkube-prometheus-stack-apiserver%2F0/targets | jq
Expected Result
At least one collector scraps the apiserver targets.
Actual Result
No collector scraps the apiserver target resulting in no metrics.
Kubernetes Version
1.29.0
Operator version
0.96.0
Collector version
0.96.0
Environment information
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: