<p>I am running a go app that is creating prometheus metrics that are node specific metrics and I want to be able to add the node IP as a label.</p>

<p>Is there a way to capture the Node IP from within the Pod?</p>

<p>The accepted answer didn't work for me, it seems <code>fieldPath</code> is required now:</p>

<pre><code>  env:
    - name: NODE_IP
      valueFrom:
        fieldRef:
          fieldPath: status.hostIP
</code></pre>
