# Prometheus stateful set is installed in lens-metrics namespace

**URL:** https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221
**Category:** Lens Support & Troubleshooting
**Tags:** metrics, cluster
**Created:** [March 7, 2023, 8:48am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221 "2023-03-07T08:48:14Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![rahul.bhatia](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@rahul.bhatia](https://forums.k8slens.dev/u/rahul.bhatia)
#### Post date: [March 7, 2023, 8:48am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/1 "2023-03-07T08:48:15Z")

</div>

this stateful set is installed and is taking around 20 GB of ram in our cluster, what Is this used for ?

---

<div class="post-metadata">

### Author: ![rahul.bhatia](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@rahul.bhatia](https://forums.k8slens.dev/u/rahul.bhatia)
#### Post date: [March 7, 2023, 9:00am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/2 "2023-03-07T09:00:47Z")

</div>

@emeste can you help out here ?

---

<div class="post-metadata">

### Author: ![emeste](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/emeste/32/302_2.png) [@emeste](https://forums.k8slens.dev/u/emeste)
#### Post date: [March 7, 2023, 9:10am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/3 "2023-03-07T09:10:58Z")

</div>

Hi, of course! 🙂  
I asked the dev team to take a look at this topic as soon as they can.

---

<div class="post-metadata">

### Author: ![rahul.bhatia](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@rahul.bhatia](https://forums.k8slens.dev/u/rahul.bhatia)
#### Post date: [March 7, 2023, 9:17am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/4 "2023-03-07T09:17:45Z")

</div>

this has requested around 120 GB of RAM from our cluster,

 ![Screenshot 2023-03-07 at 2.47.36 PM](https://forums.k8slens.dev/original/1X/7d1fcae9c9fef010ddf94c1867edb88e31434786.jpeg)

@emeste

---

<div class="post-metadata">

### Author: ![rahul.bhatia](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@rahul.bhatia](https://forums.k8slens.dev/u/rahul.bhatia)
#### Post date: [March 8, 2023, 6:17am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/5 "2023-03-08T06:17:11Z")

</div>

@emeste any updates on this ?

---

<div class="post-metadata">

### Author: ![jehrismann](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/jehrismann/32/398_2.png) [@jehrismann](https://forums.k8slens.dev/u/jehrismann)
#### Post date: [March 8, 2023, 7:36pm UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/6 "2023-03-08T19:36:37Z")

</div>

Hi, I believe the RAM requirement of prometheus is proportional to the number of nodes/pods in a cluster. Does your cluster have a large number of these resources? The built-in Lens metrics provider may not be ideal for all situations. It may be advantageous to customize a different provider, like from the prometheus-community Helm repo, and point Lens to it rather than the built-in metrics provider.

---

<div class="post-metadata">

### Author: ![rahul.bhatia](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@rahul.bhatia](https://forums.k8slens.dev/u/rahul.bhatia)
#### Post date: [March 9, 2023, 5:50am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/7 "2023-03-09T05:50:29Z")

</div>

@emeste any updates on this ?

---

<div class="post-metadata">

### Author: ![rahul.bhatia](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@rahul.bhatia](https://forums.k8slens.dev/u/rahul.bhatia)
#### Post date: [March 9, 2023, 5:51am UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/8 "2023-03-09T05:51:28Z")

</div>

so what is this metric-provider used for ? and what actions does it take on its own ?

---

<div class="post-metadata">

### Author: ![jehrismann](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/jehrismann/32/398_2.png) [@jehrismann](https://forums.k8slens.dev/u/jehrismann)
#### Post date: [March 9, 2023, 5:09pm UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/9 "2023-03-09T17:09:23Z")

</div>

In short the metrics provider collects data (like CPU, memory, network traffic) in your cluster so that you can monitor usage/performance by system/node/pod/container etc. When Lens is pointed to the provider it graphically displays the information for you:

 ![Screen Shot 2023-03-09 at 11.55.32 AM](https://forums.k8slens.dev/original/1X/b9bd9754b99932ff499fcc12eaf6068138c615fe.png)

 ![Screen Shot 2023-03-09 at 12.04.59 PM](https://forums.k8slens.dev/original/1X/d0905f40c047489010c7cab66c038c2cf706d70a.jpeg)

The heart of the metrics provider is [Prometheus](https://prometheus.io/docs/introduction/overview/).

---

<div class="post-metadata">

### Author: ![rahul.bhatia](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@rahul.bhatia](https://forums.k8slens.dev/u/rahul.bhatia)
#### Post date: [March 9, 2023, 5:36pm UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/10 "2023-03-09T17:36:12Z")

</div>

Alright, I have 2 clusters running in my environment, one does not have this deployment at all, and this stateful-set got automatically setup in the cluster I have mentioned up, I already have a prometheus server running in my cluster, how do I make sure cluster points to that prometheus server ?

---

<div class="post-metadata">

### Author: ![jehrismann](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/jehrismann/32/398_2.png) [@jehrismann](https://forums.k8slens.dev/u/jehrismann)
#### Post date: [March 10, 2023, 2:24pm UTC](https://forums.k8slens.dev/t/prometheus-stateful-set-is-installed-in-lens-metrics-namespace/221/11 "2023-03-10T14:24:58Z")

</div>

From the cluster settings there is a page called “Lens Metrics” or “Builtin Metrics Provider” (the name changed recently). Here you can install or uninstall the built-in Lens metrics provider components you have asked about.  
There is also “Metrics”, where you can point Lens to your existing prometheus setup. Lens supports a few common metrics setups, and tries to auto-detect what is installed. You can also manually select one of the setups and specify the prometheus service address, if Lens can’t find it.
