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
Is your feature request related to a problem? Please describe.
Two prometheus receivers cannot be defined.
The effect of this is that when I use targetAllocator, all static_configs are overwritten and I cannot get cadvisor metrics in EKS as shown below.
When using the targetAllocator, static_configs are automatically rewritten.
You should be able to get cAdvisor metrics via the Target Allocator this way. What specific issue are you running into? The Target Allocator will take all the scrape configs in your prometheus receiver, generate targets, and allocate them. It shouldn't matter what exactly you have in your scrape config definitions.
We could allow multiple prometheus receivers with the Target Allocator enabled. The reason we haven't is that we've yet to see a compelling use case for it. Generally speaking, there isn't any reason not to use the Target Allocator for everything.
You can't, you need a raw scrape config. The one you've written looks correct to me, and I have a very similar one working with the Target Allocator just fine. Which is why I'd like to know what kind of issue prevents you from using it.
Component(s)
collector
Is your feature request related to a problem? Please describe.
Two prometheus receivers cannot be defined.
The effect of this is that when I use targetAllocator, all static_configs are overwritten and I cannot get cadvisor metrics in EKS as shown below.
When using the targetAllocator, static_configs are automatically rewritten.
However, there are cases where I want to set static_configs directly.
If I write it like this, the settings for cadvisor will also be changed.
However, defining two receivers like this returns an error.
Describe the solution you'd like
I would like to be able to define multiple prometheus receivers.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: