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

# Observability

> Read deployment metrics using the Simplismart Python SDK

Read deployment metrics using the `Simplismart` client methods below.

### `federate_deployment_metrics`

Returns metrics for your deployments in Prometheus text format.

```python theme={null}
from simplismart import Simplismart

client = Simplismart()
metrics = client.federate_deployment_metrics(namespace="deployment-slug")
print(metrics)
```

> [!NOTE]
>
> Pass a `namespace` (the deployment slug). Without one, the request covers every deployment in the organization and can time out on large organizations.

| Parameter | Type | Description | Required |
| - | - | - | - |
| `namespace` | `str \| list[str] \| None` | Deployment slug, or a list of slugs | No |
| `bundle` | `str \| None` | Metric bundle: `core` (default) or `all` | No |
| `source` | `str \| None` | Metrics source: `deployment` (default) or `central` | No |
| `include_skipped` | `bool \| None` | List the slugs of skipped (inactive) deployments in the output (default `True`) | No |
| `ingress_status_exclude` | `str \| None` | Comma-separated HTTP status codes to leave out of ingress request metrics | No |


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