Skip to content

Commit a838b9d

Browse files
Merge pull request #276474 from AaronMaxwell/aaronmax-otel-livemetrics
OTEL Live Metrics
2 parents 639d6c0 + 0edf930 commit a838b9d

File tree

2 files changed

+83
-3
lines changed

2 files changed

+83
-3
lines changed

articles/azure-monitor/app/opentelemetry-configuration.md

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export OTEL_SERVICE_NAME="my-helloworld-service"
302302

303303
## Enable Sampling
304304

305-
You might want to enable sampling to reduce your data ingestion volume, which reduces your cost. Azure Monitor provides a custom *fixed-rate* sampler that populates events with a sampling ratio, which Application Insights converts to `ItemCount`. The *fixed-rate* sampler ensures accurate experiences and event counts. The sampler is designed to preserve your traces across services, and it's interoperable with older Application Insights SDKs. For more information, see [Learn More about sampling](sampling.md#brief-summary).
305+
You might want to enable sampling to reduce your data ingestion volume, which reduces your cost. Azure Monitor provides a custom *fixed-rate* sampler that populates events with a sampling ratio, which Application Insights converts to `ItemCount`. The *fixed-rate* sampler ensures accurate experiences and event counts. The sampler is designed to preserve your traces across services, and it's interoperable with older Application Insights Software Development Kits (SDKs). For more information, see [Learn More about sampling](sampling.md#brief-summary).
306306

307307
> [!NOTE]
308308
> Metrics and Logs are unaffected by sampling.
@@ -385,6 +385,86 @@ export OTEL_TRACES_SAMPLER_ARG=0.1
385385

386386
<a name='enable-entra-id-formerly-azure-ad-authentication'></a>
387387

388+
## Live metrics
389+
390+
[Live metrics](live-stream.md) provides a real-time analytics dashboard for insight into application activity and performance.
391+
392+
#### [ASP.NET Core](#tab/aspnetcore)
393+
394+
> [!IMPORTANT]
395+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
396+
397+
This feature is enabled by default.
398+
399+
Users can disable Live Metrics when configuring the Distro.
400+
401+
```csharp
402+
builder.Services.AddOpenTelemetry().UseAzureMonitor(options => {
403+
// Disable the Live Metrics feature.
404+
options.EnableLiveMetrics = false;
405+
});
406+
```
407+
408+
#### [.NET](#tab/net)
409+
410+
This feature isn't available in the Azure Monitor .NET Exporter.
411+
412+
#### [Java](#tab/java)
413+
414+
The Live Metrics experience is enabled by default.
415+
416+
For more information on Java configuration, see [Configuration options: Azure Monitor Application Insights for Java](java-standalone-config.md#configuration-options-azure-monitor-application-insights-for-java).
417+
418+
#### [Node.js](#tab/nodejs)
419+
420+
> [!IMPORTANT]
421+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
422+
423+
Users can enable/disable Live Metrics when configuring the Distro using the `enableLiveMetrics` property.
424+
425+
```typescript
426+
const options: AzureMonitorOpenTelemetryOptions = {
427+
azureMonitorExporterOptions: {
428+
connectionString:
429+
process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"] || "<your connection string>",
430+
},
431+
enableLiveMetrics: false
432+
};
433+
434+
useAzureMonitor(options);
435+
```
436+
437+
<!--
438+
439+
TODO:
440+
441+
This feature is/isn't enabled by default.
442+
443+
Functionality and customization are covered in the following configuration sample.
444+
445+
```
446+
Configuration sample
447+
```
448+
449+
-->
450+
451+
#### [Python](#tab/python)
452+
453+
> [!IMPORTANT]
454+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
455+
456+
You can enable live metrics using the Azure monitor OpenTelemetry Distro for Python as follows:
457+
458+
```python
459+
...
460+
configure_azure_monitor(
461+
enable_live_metrics=True
462+
)
463+
...
464+
```
465+
466+
---
467+
388468
## Enable Microsoft Entra ID (formerly Azure AD) authentication
389469

390470
You might want to enable Microsoft Entra authentication for a more secure connection to Azure, which prevents unauthorized telemetry from being ingested into your subscription.
@@ -874,4 +954,4 @@ For more information about OpenTelemetry SDK configuration, see the [OpenTelemet
874954

875955
[!INCLUDE [azure-monitor-app-insights-opentelemetry-faqs](../includes/azure-monitor-app-insights-opentelemetry-faqs.md)]
876956

877-
[!INCLUDE [azure-monitor-app-insights-opentelemetry-support](../includes/azure-monitor-app-insights-opentelemetry-support.md)]
957+
[!INCLUDE [azure-monitor-app-insights-opentelemetry-support](../includes/azure-monitor-app-insights-opentelemetry-support.md)]

articles/azure-monitor/includes/azure-monitor-app-insights-opentelemetry-faqs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The following chart breaks out OpenTelemetry feature support for each language.
9393
| [Logs collection](../app/asp-net-trace-logs.md) | :white_check_mark: | :warning: | :white_check_mark: | :white_check_mark: |
9494
| [Custom Events](../app/usage-overview.md#custom-business-events) | :warning: | :warning: | :warning: | :white_check_mark: |
9595
| [Microsoft Entra authentication](../app/azure-ad-authentication.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
96-
| [Live metrics](../app/live-stream.md) | :x: | :x: | :x: | :white_check_mark: |
96+
| [Live metrics](../app/live-stream.md) | :warning: | :warning: | :warning: | :white_check_mark: |
9797
| Detect Resource Context for VM/VMSS and App Service | :white_check_mark: | :x: | :white_check_mark: | :white_check_mark: |
9898
| Detect Resource Context for Azure Kubernetes Service (AKS) and Functions | :x: | :x: | :x: | :white_check_mark: |
9999
| Availability Testing Span Filtering | :x: | :x: | :x: | :white_check_mark: |

0 commit comments

Comments
 (0)