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.
Is there a way to captu
The accepted answer didn't work for me, it seems fieldPath is required now:
fieldPath
env: - name: NODE_IP valueFrom: fieldRef: fieldPath: status.hostIP