<p>i want to monitor a kubernetes cluster.</p>
<p>I already have a prometheus server instantiated in a saas plateform (<a href="https://www.stackhero.io/en/services/Prometheus/benefits" rel="nofollow noreferrer">https://www.stackhero.io/en/services/Prometheus/benefits</a>)</p>
<p>What would be the best way to export metrics to this server ?</p>
<p>The first thing that comes to my mind is to install node-exporter (do you know special manifest to do that ?), export it through a LB/Public IP and scrap the data from the prometheus server.</p>

BastienSander
<p>Personally, I prefer the following:</p>
<p><a href="https://i.stack.imgur.com/xnM8r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xnM8r.png" alt="enter image description here" /></a></p>
<ol>
<li>Install a Node-Exporter + Prometheus on your Kubernetes cluster</li>
<li>Use the <em>federation</em> feature of Prometheus to have more control of what you would like to scrape, e.q. if you have more than one clusters, you can add certain information in the federation configuration. <a href="https://prometheus.io/docs/prometheus/latest/federation/" rel="nofollow noreferrer">https://prometheus.io/docs/prometheus/latest/federation/</a></li>
</ol>
<p>You can deploy the monitoring stack on the Kubernetes cluster with e.g. <a href="https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack" rel="nofollow noreferrer">https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack</a> which is a Helm-Chart to deploy all the relevant tooling around Prometheus. Besides the deployment of the node-exporter it will also take care to add all the <code>serviceMonitor</code> for the kubelet, kube-proxy, ...</p>
<blockquote>
<p>export it through a LB/Public IP
Yes, you're right, you have then to export the Prometheus via LB. Also, take care of the <a href="https://prometheus.io/docs/prometheus/latest/configuration/https/" rel="nofollow noreferrer">authentication</a> that you not expose a Prometheus to the public.</p>
</blockquote>
