Skip to content

Commit b2cc9b6

Browse files
committed
Update docs
1 parent 8abffb6 commit b2cc9b6

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

docs/docs/guides/metrics.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,21 @@ telemetry, and more.
176176
| `dstack_run_type` | *string* | Run configuration type | `task`, `dev-environment` |
177177
| `dstack_backend` | *string* | Backend | `aws`, `runpod` |
178178
| `dstack_gpu` | *string?* | GPU name | `H100` |
179+
180+
### Server health metrics
181+
182+
These are operational metrics to monitor the health of the dstack server. For now, these only include HTTP metrics, but more will be added later.
183+
184+
=== "Metrics"
185+
| Name | Type | Description | Examples |
186+
|------------------------------------------|-----------|-----------------------------------|--------------|
187+
| `dstack_server_requests_total` | *counter* | Total number of HTTP requests | `100.0` |
188+
| `dstack_server_request_duration_seconds` | *histogram* | HTTP request duration in seconds | `1.0`|
189+
190+
=== "Labels"
191+
| Name | Type | Description | Examples |
192+
|------------------------|-----------|:--------------|----------------------------------------|
193+
| `method` | *string* | HTTP method | `POST` |
194+
| `endpoint` | *string* | Endpoint path | `/api/project/main/repos/get` |
195+
| `http_status` | *string* | HTTP status code | `200` |
196+
| `project_name` | *string?* | Project name | `main` |

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ dependencies = [
3535
"gpuhunt==0.1.6",
3636
"argcomplete>=3.5.0",
3737
"ignore-python>=0.2.0",
38-
"prometheus-fastapi-instrumentator>=7.1.0",
3938
]
4039

4140
[project.urls]

0 commit comments

Comments
 (0)