<p>I have configured Prometheus in our infra for monitoring. In our infra, we have an EKS clusters running. I have to collect EKS metrics in Prometheus.</p>
<p>By default, Prometheus work on a pull-based mechanism. Here I have a question on how to collect metrics from outside the Kubernetes cluster. In this case, traffic flow will be Prometheus --&gt; Ingress controller --&gt; Metric pod.</p>
<p>I search for this kind of scenario, but many peoples suggested Prometheus should be in the Kubernetes cluster then only it will work. Please suggest anyone have a good solution for this kind of scenario.<br />
Is there any way to push Kubernetes metrics in Prometheus?</p>

Vishal Patil
<p>You can use Prometheus federation (<a href="https://prometheus.io/docs/prometheus/latest/federation/" rel="nofollow noreferrer">https://prometheus.io/docs/prometheus/latest/federation/</a>).</p>
<p>In your case, you can add a Prometheus instance into the EKS cluster that will scrape all cluster metrics, expose this Prometheus instance through ingress controller, and then add a target pointing on the ingress into the external Prometheus instance.</p>
