You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/metrics/README.md
+12-17Lines changed: 12 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,17 @@
4
4
5
5
**This `metrics` component is being deprecated and will be removed in a future release.**
6
6
7
-
The `metrics` component is being replaced by the **`MetricsRegistry`** built-in functionality that is now available directly in the `DistributedRuntime` framework. The `MetricsRegistry` provides:
8
-
9
-
-**Automatic metric registration** when creating metrics via endpoint factory methods
10
-
-**Built-in Prometheus HTTP endpoint** accessible via `DYN_SYSTEM_ENABLED=true` and `DYN_SYSTEM_PORT=<port>`
11
-
-**Automatic labeling** with namespace, component, and endpoint information
12
-
-**Simplified API** that eliminates the need for manual Prometheus setup
7
+
The deprecated `metrics` component is being replaced by the **`MetricsRegistry`** built-in functionality that is now available directly in the `DistributedRuntime` framework. The `MetricsRegistry` provides:
13
8
14
9
**For new projects and existing deployments, please migrate to using `MetricsRegistry` instead of this component.**
15
10
16
11
See the [Dynamo MetricsRegistry Guide](../../docs/guides/metrics.md) for detailed information on using the new metrics system.
17
12
18
13
---
19
14
20
-
The `metrics` component is a utility for collecting, aggregating, and publishing metrics from a Dynamo deployment, but it is being deprecated and replaced by `MetricsRegistry`.
15
+
The deprecated `metrics` component is a utility for collecting, aggregating, and publishing metrics from a Dynamo deployment, but it is being deprecated and replaced by `MetricsRegistry`.
21
16
22
-
**Note**: This is a demo implementation. The metrics component is currently under active development and this documentation will change as the implementation evolves.
17
+
**Note**: This is a demo implementation. The deprecated `metrics` component is currently under active development and this documentation will change as the implementation evolves.
23
18
- In this demo the metrics names use the prefix "llm", but in production they will be prefixed with "dynamo" (e.g., the HTTP `/metrics` endpoint will serve metrics with "dynamo" prefixes)
24
19
- This demo will only work when using examples/llm/configs/agg.yml-- other configurations will not work
25
20
@@ -29,7 +24,7 @@ The `metrics` component is a utility for collecting, aggregating, and publishing
29
24
30
25
## Quickstart
31
26
32
-
To start the `metrics` component, simply point it at the `namespace/component/endpoint`
27
+
To start the deprecated `metrics` component, simply point it at the `namespace/component/endpoint`
33
28
trio for the Dynamo workers that you're interested in monitoring metrics on.
34
29
35
30
This will:
@@ -58,14 +53,14 @@ will get automatically discovered and the warnings will stop.
58
53
59
54
## Workers
60
55
61
-
The `metrics` component needs running workers to gather metrics from,
56
+
The deprecated `metrics` component needs running workers to gather metrics from,
62
57
so below are some examples of workers and how they can be monitored.
63
58
64
59
### Mock Worker
65
60
66
-
To try out how `metrics` works, there is a demo Rust-based
61
+
To try out how the deprecated `metrics` component works, there is a demo Rust-based
67
62
[mock worker](src/bin/mock_worker.rs) that provides sample data through two mechanisms:
68
-
1. Exposes a stats handler at `dynamo/MyComponent/my_endpoint` that responds to polling requests (from `metrics`) with randomly generated `ForwardPassMetrics` data
63
+
1. Exposes a stats handler at `dynamo/MyComponent/my_endpoint` that responds to polling requests (from the deprecated `metrics` component) with randomly generated `ForwardPassMetrics` data
69
64
2. Publishes mock `KVHitRateEvent` data every second to demonstrate event-based metrics
70
65
71
66
Step 1: Launch a mock workers via the following command (if already built):
Copy file name to clipboardExpand all lines: deploy/metrics/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The metrics aggregation service is being replaced by the **`MetricsRegistry`** b
8
8
9
9
-**Built-in Prometheus HTTP endpoint** accessible via `DYN_SYSTEM_ENABLED=true` and `DYN_SYSTEM_PORT=<port>` (default: 8081)
10
10
-**Automatic metric registration** when creating metrics via endpoint factory methods
11
-
-**Automatic labeling** with namespace, component, and endpoint information
11
+
-**Automatic prefix and labeling** with `dynamo_component_` name prefix, as well as auto labels: dynamo_namespace, dynamo_component, and dynamo_endpoint information. These labels are prefixed to avoid Kubernetes label collisions.
12
12
-**Simplified deployment** - no separate metrics component required
13
13
14
14
**For new projects and existing deployments, please migrate to using `MetricsRegistry` instead of the metrics aggregation service.**
Copy file name to clipboardExpand all lines: lib/runtime/examples/system_metrics/README.md
+53-53Lines changed: 53 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ let ingress = Ingress::for_engine(my_handler)?;
29
29
ingress.add_metrics(&endpoint)?;
30
30
```
31
31
32
-
The endpoint automatically provides proper labeling (namespace, component, endpoint) for all metrics.
32
+
The endpoint automatically provides prefix of `dynamo_component_*` in the name, and automatic labeling (dynamo_namespace, dynamo_component, dynamo_endpoint) for all metrics. These labels are prefixed with "dynamo_" to avoid collisions with Kubernetes and other monitoring system labels.
33
33
34
34
## Available Methods
35
35
@@ -44,13 +44,13 @@ The `Ingress` struct provides methods for metrics:
44
44
The following Prometheus metrics are automatically created for all work handlers:
45
45
46
46
### Counters
47
-
-`requests_total` - Total requests processed
48
-
-`request_bytes_total` - Total bytes received in requests
49
-
-`response_bytes_total` - Total bytes sent in responses
50
-
-`errors_total` - Total errors encountered (with error_type labels)
47
+
-`dynamo_component_requests_total` - Total requests processed
48
+
-`dynamo_component_request_bytes_total` - Total bytes received in requests
49
+
-`dynamo_component_response_bytes_total` - Total bytes sent in responses
50
+
-`dynamo_component_errors_total` - Total errors encountered (with error_type labels)
51
51
52
52
### Error Types
53
-
The `errors_total` metric includes the following error types:
53
+
The `dynamo_component_errors_total` metric includes the following error types:
0 commit comments