<p>I wanted to set up monitoring of my K8 cluster using Prometheus but wanted to set that up outside my existing cluster. I have come across a lot of articles which specify how to do the set up inside the cluster but have not come across much (including stack overflow posts) which give a detail/step by step walk through of how we can do this outside the cluster.</p>
<p>I have only found one useful article so far listed below:
<a href="https://www.linkedin.com/pulse/monitoring-kubernetes-prometheus-outside-cluster-steven-acreman" rel="nofollow noreferrer">https://www.linkedin.com/pulse/monitoring-kubernetes-prometheus-outside-cluster-steven-acreman</a></p>
<p>Does anyone have any docs in regards to this. Any tips would be appreciated! Thanks!</p>

newbie11222
<p>Use <a href="https://prometheus.io/docs/prometheus/latest/federation/" rel="nofollow noreferrer">Prometheus federation</a>. There are different use cases for federation. Commonly, it is used to either achieve scalable Prometheus monitoring setups or to pull related metrics from one service's Prometheus into another.</p>
<p>People are also using this way to monitor multiple clusters.</p>
<p>Take a look: <a href="https://github.com/prometheus/prometheus/issues/4633" rel="nofollow noreferrer">prometheus-integration</a>.</p>
