<!-- Please only use this template for submitting improvement requests, and make sure it is linked to the relevant GitHub Project. --> **Component**: node-exporter, prometheus <!-- E.g. 'salt', 'containers', 'kubernetes', 'build', 'tests'... --> **Why this is needed**: - Enable using node-exporter metrics in prometheus-adapter (see https://github.com/scality/metalk8s/pull/4017#discussion_r1129833450) - Exploring node-exporter metrics (e.g. using Grafana Explore tab) would be easier - Querying these metrics from our UI would avoid retrieving node IPs from Salt (to build the "instance" label as `$control_plane_ip:$node_exporter_port`) **What should be done**: Current service discovery for node-exporter is only using the Service (so, Endpoints), hence, we don't get node metadata. [This SO answer](https://stackoverflow.com/a/71766518/20439997) seems to point to a solution (i.e. use kubernetes_sd_configs with `node` role: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#node).
Component: node-exporter, prometheus
Why this is needed:
$control_plane_ip:$node_exporter_port)What should be done:
Current service discovery for node-exporter is only using the Service (so, Endpoints), hence, we don't get node metadata. This SO answer seems to point to a solution (i.e. use kubernetes_sd_configs with
noderole: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#node).