> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenTelemetry metrics

> Account-level tenant, tenant group, and running instance metrics available through OpenTelemetry.

Namespace supports account-level metrics through the OpenTelemetry Protocol (OTLP).
These metrics describe the tenants and tenant groups your account owns and the instances running across your tenants.
They are separate from the per-instance CPU, memory, and disk metrics described in [Compute observability](https://namespace.so/docs/platform/compute/observability.md).

## Supported metrics

All metrics are integer gauges with unit `{count}`. Each value is a point-in-time count, not a cumulative counter.

| Metric | Description | Attributes |
| - | - | - |
| `namespace.account.tenants` | Total tenants owned by the account, including soft-deleted and automatically allocated tenants. | `account_id` |
| `namespace.account.non_deleted_tenants` | Tenants owned by the account that have not been deleted. | `account_id` |
| `namespace.account.tenant_groups` | Tenant groups owned by the account, including groups with no enrolled tenants. | `account_id` |
| `namespace.account.non_deleted_tenant_groups` | Tenant groups owned by the account that have not been deleted, including groups with no enrolled tenants. | `account_id` |
| `namespace.account.running_instances` | Running instances attributed to the account, grouped by purpose. | `account_id`, `purpose` |

## Attributes

| Attribute | Description |
| - | - |
| `account_id` | The Namespace account owner ID, in `user_…` format. This identifies your platform's account, not an individual customer's tenant. |
| `purpose` | The instance's `nsc.purpose` label. Devboxes use `devbox`. Instances without this label use an empty string. Only present on `namespace.account.running_instances`. |

Each account has its own time series. Counts are aggregated across regions, with no per-tenant or per-region breakdown.
The resource attribute `service.name` is `namespace-account-metrics`.

## Counting semantics

Tenant counts reflect current ownership. Deleting a tenant removes it from `namespace.account.non_deleted_tenants`, but it remains in `namespace.account.tenants` while its soft-deleted record is retained.

Tenant group counts include empty groups, even when the account owns no tenants. Tenant groups are hard-deleted, so `namespace.account.tenant_groups` and `namespace.account.non_deleted_tenant_groups` currently have the same value. Deleting a group removes it from both counts.

Running instance counts use the tenant owner recorded when each instance was created. Transferring a tenant to another account does not reattribute its existing instances.
Instances in soft-deleted tenants can still contribute to the count while they remain running.

An instance is counted only while both its actual and intended state are running, with no shutdown request or abandoned-startup marker.
Instances still starting, paused or stopped devboxes, and instances being shut down are excluded.
The `purpose="devbox"` series is emitted even when its count is zero.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.