From 9e33ab0977ee89ed5e9b4a25d0296c3c78e0b3eb Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Fri, 5 Jul 2024 16:43:16 +0800 Subject: [PATCH 1/2] Dashboard telemetry limit scopes --- docs/fundamentals/dashboard/configuration.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/fundamentals/dashboard/configuration.md b/docs/fundamentals/dashboard/configuration.md index 0ed7b3ef92..6d37d1eedb 100644 --- a/docs/fundamentals/dashboard/configuration.md +++ b/docs/fundamentals/dashboard/configuration.md @@ -125,13 +125,16 @@ The resource service client authentication is configured with `Dashboard:Resourc Telemetry is stored in memory. To avoid excessive memory usage, the dashboard has limits on the count and size of stored telemetry. When a count limit is reached, new telemetry is added, and the oldest telemetry is removed. When a size limit is reached, data is truncated to the limit. -Limits are per-resource. For example, a `MaxLogCount` value of 10,000 configures the dashboard to store up to 10,000 log entries per-resource. +Telemetry limits have different scopes depending upon the telemetry type: + +* `MaxLogCount` and `MaxTraceCount` are shared across resources. For example, a `MaxLogCount` value of 5,000 configures the dashboard to store up to 5,000 total log entries for all resources. +* `MaxMetricsCount` is per-resource. For example, a `MaxMetricsCount` value of 10,000 configures the dashboard to store up to 10,000 metrics data points per-resource. | Option | Default Value | Description | |--|--|--| -| `Dashboard:TelemetryLimits:MaxLogCount` | 10,000 | The maximum number of log entries. | -| `Dashboard:TelemetryLimits:MaxTraceCount` | 10,000 | The maximum number of log traces. | -| `Dashboard:TelemetryLimits:MaxMetricsCount` | 50,000 | The maximum number of metric data points. | +| `Dashboard:TelemetryLimits:MaxLogCount` | 10,000 | The maximum number of log entries. Limit is shared across resources. | +| `Dashboard:TelemetryLimits:MaxTraceCount` | 10,000 | The maximum number of log traces. Limit is shared across resources. | +| `Dashboard:TelemetryLimits:MaxMetricsCount` | 50,000 | The maximum number of metric data points. Limit is per-resource. | | `Dashboard:TelemetryLimits:MaxAttributeCount` | 128 | The maximum number of attributes on telemetry. | | `Dashboard:TelemetryLimits:MaxAttributeLength` | `null` | The maximum length of attributes. | | `Dashboard:TelemetryLimits:MaxSpanEventCount` | `null` | The maximum number of events on span attributes. | From 461211b503b101e72ebb8ca2b48c458484806a87 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Fri, 5 Jul 2024 22:14:23 +0800 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/fundamentals/dashboard/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/fundamentals/dashboard/configuration.md b/docs/fundamentals/dashboard/configuration.md index 6d37d1eedb..b68fef4163 100644 --- a/docs/fundamentals/dashboard/configuration.md +++ b/docs/fundamentals/dashboard/configuration.md @@ -127,8 +127,8 @@ Telemetry is stored in memory. To avoid excessive memory usage, the dashboard ha Telemetry limits have different scopes depending upon the telemetry type: -* `MaxLogCount` and `MaxTraceCount` are shared across resources. For example, a `MaxLogCount` value of 5,000 configures the dashboard to store up to 5,000 total log entries for all resources. -* `MaxMetricsCount` is per-resource. For example, a `MaxMetricsCount` value of 10,000 configures the dashboard to store up to 10,000 metrics data points per-resource. +- `MaxLogCount` and `MaxTraceCount` are shared across resources. For example, a `MaxLogCount` value of 5,000 configures the dashboard to store up to 5,000 total log entries for all resources. +- `MaxMetricsCount` is per-resource. For example, a `MaxMetricsCount` value of 10,000 configures the dashboard to store up to 10,000 metrics data points per-resource. | Option | Default Value | Description | |--|--|--|