# Setting up your own metrics on Lens

**URL:** https://forums.k8slens.dev/t/setting-up-your-own-metrics-on-lens/342
**Category:** FAQ
**Created:** [April 13, 2023, 4:35pm UTC](https://forums.k8slens.dev/t/setting-up-your-own-metrics-on-lens/342 "2023-04-13T16:35:06Z")
**Posts on this page:** 1
**Page:** 1

<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: [April 13, 2023, 4:35pm UTC](https://forums.k8slens.dev/t/setting-up-your-own-metrics-on-lens/342/1 "2023-04-13T16:35:06Z")

</div>

Install the prometheus chart from the prometheus-community repo ([Prometheus Community Kubernetes Helm Charts | helm-charts](https://prometheus-community.github.io/helm-charts)). You may need to add it as a custom repo to Lens (you can add custom helm repos by picking **Preferences** from the Lens menu, select the **Kubernetes** tab, find the **Helm Charts** section, click **Add Custom Helm Repo** ):

 ![](https://forums.k8slens.dev/original/1X/1d9827716764b37b20fd9001d15c23af61c82d7e.jpeg)

Note this helm chart also installs kube-state-metrics and node-exporter, which are necessary for Lens to show metrics. Install prometheus from Lens (connect to your cluster, in the sidebar pick **Charts** from the **Helm** section, find the prometheus chart):

 ![](https://forums.k8slens.dev/original/1X/79eed19c097a12cb9299c53349c175b8fd0b3f9a.jpeg)

I created a namespace called monitoring and then modified the helm install to put prometheus in the monitoring namespace:

 ![](https://forums.k8slens.dev/original/1X/e5d9df2a97a942409c87734ce6040d056c3599a5.jpeg)

(Prometheus can also just be installed in the default namespace.)

This is what is initially seen for cluster metrics, after the prometheus install:

 ![](https://forums.k8slens.dev/original/1X/1962850f527d0808229544cfb7c12ee752d805ba.jpeg)

Lens tries to autodetect the prometheus installation but doesn’t work in this case. So instead try setting the config manually by going to the cluster settings, metrics tab:

 ![](https://forums.k8slens.dev/original/1X/9e4dc1c5b7426c6ecc7f2ccdec6c03122e93c150.jpeg)

Here, I set the prometheus option to Helm and the PROMETHEUS SERVICE ADDRESS to monitoring/prometheus-1675956373-server:80 as per **\<namespace\>/\<service\>:\<port\>**. I got the service name and port (80) from the appropriate service:

 ![](https://forums.k8slens.dev/original/1X/99c1ff2688d2650d975aaec01102101b306d7ff3.jpeg)

After a minute or two you should see something like this for the Cluster metrics:

 ![](https://forums.k8slens.dev/original/1X/00e382d9fbdc1dcbe80c869e36bd008dd6fe8cc8.jpeg)
