# Prometheus endpoints on Netdata agent

**URL:** <https://community.netdata.cloud/t/prometheus-endpoints-on-netdata-agent/3839>\
**Category:** General\
**Created:** [February 8, 2023, 3:16pm UTC](https://community.netdata.cloud/t/prometheus-endpoints-on-netdata-agent/3839 "2023-02-08T15:16:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgary1964](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/rgary1964/32/2607_2.png) [@rgary1964](https://community.netdata.cloud/u/rgary1964)\
**Post date:** [February 8, 2023, 3:16pm UTC](https://community.netdata.cloud/t/prometheus-endpoints-on-netdata-agent/3839/1 "2023-02-08T15:16:50Z")

</div>

Hello. I am new to Netdata and I am attempting to configure the following on a K8 stack:

- Using Python prometheus-client, I created a Counter metric and exposed this on port 8000 with start\_http\_server(8000) in my python code running on a pod
- Modified prometheus configmap to add a new target to scrape port 8000 and restarted prometheus server.
- New counter metric is now visible in Prometheus
- After installing Netdata and launching agent, I would like to view this new Prometheus target/metric on Netdata agent.

Does the Netdata Prometheus collector automatically detect this new target? I am having no luck viewing the metric on Netdata agent. I am thinking that a config change is needed but am having no luck so far. I added ‘127.0.0.1:8000/metrics’ to prometheus.conf on the parent pod, but still no luck. I also used ‘pod-ip:8000/metrics’ in prometheus.conf…no luck.

Any input much appreciated!

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [February 9, 2023, 7:11pm UTC](https://community.netdata.cloud/t/prometheus-endpoints-on-netdata-agent/3839/2 "2023-02-09T19:11:09Z")

</div>

Hi, @rgary1964. I believe it should work if:

- Netdata [installed inside the K8s cluster](https://github.com/netdata/helmchart#netdata-helm-chart-for-kubernetes-deployments) (not directly on worker nodes).
- The pod (the one with 8000) has `prometheus.io/scrape: true` label.
- 8000 is exposed in the container of the Pod.

---

<div class="post-metadata">

**Author:** ![rgary1964](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/rgary1964/32/2607_2.png) [@rgary1964](https://community.netdata.cloud/u/rgary1964)\
**Post date:** [February 10, 2023, 4:05pm UTC](https://community.netdata.cloud/t/prometheus-endpoints-on-netdata-agent/3839/3 "2023-02-10T16:05:24Z")

</div>

Hi @ilyam8. Thank you for the info! I will give this a try.

---

<div class="post-metadata">

**Author:** ![meezaan](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/meezaan/32/3497_2.png) [@meezaan](https://community.netdata.cloud/u/meezaan)\
**Post date:** [February 22, 2024, 5:12pm UTC](https://community.netdata.cloud/t/prometheus-endpoints-on-netdata-agent/3839/4 "2024-02-22T17:12:53Z")

</div>

@ilyam8 this is great, but where in netdata cloud can I view / search for the prometheus metrics? Thanks.

---

<div class="post-metadata">

**Author:** ![meezaan](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/meezaan/32/3497_2.png) [@meezaan](https://community.netdata.cloud/u/meezaan)\
**Post date:** [February 22, 2024, 5:14pm UTC](https://community.netdata.cloud/t/prometheus-endpoints-on-netdata-agent/3839/5 "2024-02-22T17:14:52Z")

</div>

Nevermind @ilyam8, I just saw them there 🙂
