I am attempting to use this functionality to add an additional label of IP address to send to the pushgateway. It seems this function fails on mac (which is fine, I can fallback) but also always returns 127.0.0.1 on a kube pod. Am I missing something for this? The documentation seems somewhat sparse on this functionality.
Could someone share a working example or point me to further documentation?