# Prometheus metrics only have one namespace: temporal\_system inside metrics

**URL:** <https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568>\
**Category:** Community Support\
**Tags:** prometheus, metrics\
**Created:** [December 9, 2021, 11:33am UTC](https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568 "2021-12-09T11:33:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Qian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ryan_qian/32/583_2.png) [@Ryan\_Qian](https://community.temporal.io/u/Ryan_Qian)\
**Post date:** [December 9, 2021, 11:33am UTC](https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568/1 "2021-12-09T11:33:05Z")

</div>

Bellow is the configuration part of metrics setting.

```auto
...
global:
  membership:
    maxJoinDuration: 30s
    broadcastAddress: "192.168.127.18"
  pprof:
    port: 7936
  metrics:
    prometheus:
       timerType: "histogram"
       listenAddress: "192.168.127.18:8000"

services:
  frontend:
    rpc:
      grpcPort: 7233
      membershipPort: 6933
      bindOnIP: "192.168.127.18"
...

```

problem is the metrics I query from prometheus, only have `temporal_system` namespace, like bellow:

```auto

temporal_workflow_completed{activity_type="none", client_name="temporal_go", group="nta-temporal-cluster-1", instance="collector-001:8000", job="file-sd", namespace="temporal_system", task_queue="none", type="temporal", worker_type="none", workflow_type="temporal_sys_tq_scanner_workflow"}

```

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [December 9, 2021, 6:43pm UTC](https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568/2 "2021-12-09T18:43:39Z")

</div>

Can you see what all namespaces you have with

`tctl namespace list`

---

<div class="post-metadata">

**Author:** ![Ryan\_Qian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ryan_qian/32/583_2.png) [@Ryan\_Qian](https://community.temporal.io/u/Ryan_Qian)\
**Post date:** [December 10, 2021, 3:55am UTC](https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568/3 "2021-12-10T03:55:43Z")

</div>

> [@tihomir](#):
>
> tctl namespace list

```auto
➜ tctl namespace list | grep Name
Name: sre
NamespaceData: map[string]string(nil)
ActiveClusterName: active
Name: fortest
NamespaceData: map[string]string(nil)
ActiveClusterName: active
Name: temporal-system
NamespaceData: map[string]string(nil)
ActiveClusterName: active
Name: firepipe
NamespaceData: map[string]string(nil)
ActiveClusterName: active
Name: samples-namespace
NamespaceData: map[string]string(nil)
ActiveClusterName: active
Name: te
NamespaceData: map[string]string(nil)
ActiveClusterName: active
Name: it
NamespaceData: map[string]string(nil)
ActiveClusterName: active

```

Here is one without grep

```auto
Name: it
Id: e23f9bc1-3230-4e91-ad12-8380da5dfa9a
Description: 
OwnerEmail: 
NamespaceData: map[string]string(nil)
State: Registered
Retention: 72h0m0s
ActiveClusterName: active
Clusters: active
HistoryArchivalState: Disabled
VisibilityArchivalState: Disabled
Bad binaries to reset:
+-----------------+----------+------------+--------+
| BINARY CHECKSUM | OPERATOR | START TIME | REASON |
+-----------------+----------+------------+--------+
+-----------------+----------+------------+--------+

```

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [December 10, 2021, 5:45am UTC](https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568/4 "2021-12-10T05:45:56Z")

</div>

Thanks, do you enable metrics for each service or just in “global”. Each service individually should enable its metrics (expose the listenAddress port).

---

<div class="post-metadata">

**Author:** ![Ryan\_Qian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ryan_qian/32/583_2.png) [@Ryan\_Qian](https://community.temporal.io/u/Ryan_Qian)\
**Post date:** [December 10, 2021, 6:06am UTC](https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568/5 "2021-12-10T06:06:31Z")

</div>

ic, only in global. let me add this configuration inside each service.

---

<div class="post-metadata">

**Author:** ![TC\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tc_lee/32/2066_2.png) [@TC\_Lee](https://community.temporal.io/u/TC_Lee)\
**Post date:** [June 3, 2022, 2:26am UTC](https://community.temporal.io/t/prometheus-metrics-only-have-one-namespace-temporal-system-inside-metrics/3568/6 "2022-06-03T02:26:44Z")

</div>

how do i enable “global” for all metrics to be emitted in other namespaces in Kubernetes ? My deployment is using helm chart
