<p>I would like to get the age of a node in my kubernetes cluster via a query to prometheus in K8s like in the <code>kubectl get nodes</code> we got an age info.</p>
<p>How to access this info?</p>
<p>Thanks in advance.</p>

Sami Jaghouar
<p>If you need the uptime of the node (that is what the <code>Age</code> for the K8s resources generally denotes IIUC), you can use the <code>node_boot_time_seconds</code> metric that comes after installing the <code>Node Exporter</code> with Prometheus.</p>
<p>You can follow this guide to install Node Exporter for your cluster: <a href="https://prometheus.io/docs/guides/node-exporter/" rel="nofollow noreferrer">https://prometheus.io/docs/guides/node-exporter/</a></p>
