Does k8sattributesprocessor works with prometheus receiver? #14710
Replies: 2 comments
-
As your |
Beta Was this translation helpful? Give feedback.
-
Thanks @jtama . |
Beta Was this translation helpful? Give feedback.
-
As your |
Beta Was this translation helpful? Give feedback.
-
Thanks @jtama . |
Beta Was this translation helpful? Give feedback.
-
The k8sattributesprocessor docs says
But the prometheus metrics receiver is pull based and since I'm running the collector as an agent I configured ip
0.0.0.0
So I'm thinking that even in the case the processor is also using the IP for a pull based receiver in this case it won't find anything querying k8s api with IP 0.0.0.0 (although I can't say if that's why I'm not seeing any label being added to the metrics or something else is happening).
I could configure the collector with an environment variable and fill that using the Downward API but I've already tried with
status.podIP
but didn't work, it failed saying it could scrap from that ip address.My configuration is the following
Beta Was this translation helpful? Give feedback.
All reactions