# Metrics for namespace "all"

**URL:** <https://community.temporal.io/t/metrics-for-namespace-all/1275>\
**Category:** Community Support\
**Created:** [January 6, 2021, 8:03pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275 "2021-01-06T20:03:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Sun](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/steven_sun/32/29_2.png) [@Steven\_Sun](https://community.temporal.io/u/Steven_Sun)\
**Post date:** [January 6, 2021, 8:03pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/1 "2021-01-06T20:03:47Z")

</div>

Hi, Im looking into the new metrics for the new server version, Im seeing a namespace “all” in the metrics counters, can you help explain what this is?

also Im only seeing errors from that “all” namespace, our own namespace has no service errors

---

<div class="post-metadata">

**Author:** ![samar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/samar/32/12_2.png) [@samar](https://community.temporal.io/u/samar)\
**Post date:** [January 6, 2021, 8:53pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/3 "2021-01-06T20:53:23Z")

</div>

Temporal emits a bunch of metric with namespace tag. We dual emit all such metric, one with the actual namespace and another for rollup with tag `namespace=all`.

---

<div class="post-metadata">

**Author:** ![Steven\_Sun](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/steven_sun/32/29_2.png) [@Steven\_Sun](https://community.temporal.io/u/Steven_Sun)\
**Post date:** [January 6, 2021, 9:03pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/4 "2021-01-06T21:03:52Z")

</div>

![Screen Shot 2021-01-06 at 1.02.31 PM](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/1X/ae546c85dd688031f6a22046643ab030531f3da7.png)  
The problem is that only namespace all has errors, all others doesnt…  
Not sure where is that being accumulated from.  
@samar

---

<div class="post-metadata">

**Author:** ![samar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/samar/32/12_2.png) [@samar](https://community.temporal.io/u/samar)\
**Post date:** [January 6, 2021, 9:48pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/5 "2021-01-06T21:48:40Z")

</div>

What is the metric name?

---

<div class="post-metadata">

**Author:** ![Steven\_Sun](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/steven_sun/32/29_2.png) [@Steven\_Sun](https://community.temporal.io/u/Steven_Sun)\
**Post date:** [January 6, 2021, 10:41pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/6 "2021-01-06T22:41:31Z")

</div>

the metrics with values, is operation.namespace, which the namespace is “all”, other namespace has no errors so not sure how is this accumulated.

---

<div class="post-metadata">

**Author:** ![samar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/samar/32/12_2.png) [@samar](https://community.temporal.io/u/samar)\
**Post date:** [January 6, 2021, 11:34pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/7 "2021-01-06T23:34:22Z")

</div>

Prometheus has a restriction that it does not allow same metric to be emitted with different set of tags. Which means you cannot have a metric which in some places is emitted with `namespace` tag and other places without it. For this reason, if a metric which is emitted with a `namespace` tag even in a single location it requires us to have this tag in other places where it is not needed. So we decided to emit `namespace` tag with value `all` at the root scope level.  
So in places where you see only `all` value for namespace then it means that metric is not emitted with a specific namespace.

---

<div class="post-metadata">

**Author:** ![Steven\_Sun](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/steven_sun/32/29_2.png) [@Steven\_Sun](https://community.temporal.io/u/Steven_Sun)\
**Post date:** [January 7, 2021, 1:04am UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/8 "2021-01-07T01:04:23Z")

</div>

“So in places where you see only `all` value for namespace then it means that metric is not emitted with a specific namespace.”  
Sorry trying to understand this sentence, does that mean this is not a namespace related errors? Its an error happening in any of those namespaces?

---

<div class="post-metadata">

**Author:** ![samar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/samar/32/12_2.png) [@samar](https://community.temporal.io/u/samar)\
**Post date:** [January 7, 2021, 1:16am UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/9 "2021-01-07T01:16:39Z")

</div>

> Sorry trying to understand this sentence, does that mean this is not a namespace related errors? Its an error happening in any of those namespaces?

This just means that specific metric is not emitted with a namespace tag.

---

<div class="post-metadata">

**Author:** ![Steven\_Sun](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/steven_sun/32/29_2.png) [@Steven\_Sun](https://community.temporal.io/u/Steven_Sun)\
**Post date:** [January 7, 2021, 1:20am UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/10 "2021-01-07T01:20:09Z")

</div>

Ok this seems only applies to a few operations like AddActivityTask and etc, those operations is not associated with any namespace. Got it

---

<div class="post-metadata">

**Author:** ![madhu](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@madhu](https://community.temporal.io/u/madhu)\
**Post date:** [January 7, 2021, 5:14pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/11 "2021-01-07T17:14:31Z")

</div>

> [@Steven\_Sun](#):
>
> e AddActivityTask and etc, those operations is not associated with any namespace. Got it

will “not available” not be more appropriate than “all” for namespace?

---

<div class="post-metadata">

**Author:** ![samar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/samar/32/12_2.png) [@samar](https://community.temporal.io/u/samar)\
**Post date:** [January 7, 2021, 5:25pm UTC](https://community.temporal.io/t/metrics-for-namespace-all/1275/12 "2021-01-07T17:25:18Z")

</div>

I think `ALL` also makes sense as this gives you the rollup across all namespace for the metric.
