Open tomk-gloat opened 2 days ago
The error in your log means that you don't have collector Pods on Nodes where Pods selected by your monitors are running. This may be related to the issue you're experiencing, but given that you're seeing no data whatsoever, this probably isn't the case. Are you sure the labels are correct? Can you also post the output of the /scrape_configs
endpoint on the target allocator?
Component(s)
target allocator
Describe the issue you're reporting
I have the target allocator set up with the following config:
This setup ignores the selector and I'm seeing the collector is scraping all the serviceMonitor resources.
I also tried adding
matchlabels
since I found an example in the one of the test files:And then it ignores all serviceMonitors, even if they have the label to match.
I also tried different label matchers, and no luck. I'm trying to understand what might I see in the logs that could help but all I see is this:
Anything that would shed light on the issue or any explanation of how to correctly setup target allocator to have it only collect metrics from selected sources would be highly appreciated.
Thank you