Custom metrics in Application Insights are not published to azure.applicationinsights namespace when using OpenTelemetry Azure Monitor exporter

Yaroslav Vasko 20 Reputation points
2026-06-30T13:32:48.43+00:00

I am using OpenTelemetry Metrics together with Azure.Monitor.OpenTelemetry.Exporter to export custom metrics to Application Insights.

According to the documentation:

When you send metrics by using OpenTelemetry, the system automatically stores these metrics in both the metrics store and logs. You can find these metrics in the customMetrics table in Application Insights and in Metrics Explorer under the Custom Metric Namespace called azure.applicationinsights.

In my case, the metrics are successfully ingested into the customMetrics table, but they do not appear in Metrics Explorer under the azure.applicationinsights namespace.

Expected behavior

Custom metrics should:

  • be available in the customMetrics table (this works), and
  • appear in Metrics Explorer under the azure.applicationinsights namespace (this does not work).

Actual behavior:

  • Metrics are present in the customMetrics table.
  • Metrics are not available in Metrics Explorer under the azure.applicationinsights namespace.

Configuration

services
    .AddMetrics()
    .AddOpenTelemetry()
    .ConfigureResource(resource =>
    {
        resource.AddService(serviceName: environment.Name);
    })
    .WithMetrics(metrics => metrics
        .AddMeter(meterName)
        .AddAzureMonitorMetricExporter(options =>
        {
            options.ConnectionString = connectionString;
        }));

Usage

var histogram = _meter.CreateHistogram<double>(name, unit);
histogram.Record(value, new TagList { ... });

Could you help determine why these metrics are exported to the customMetrics table but are not being promoted to the azure.applicationinsights metric namespace in Metrics Explorer? Is there any additional configuration or limitation that would cause this behavior?

**
Library name and version**

Azure.Monitor.OpenTelemetry.Exporter 1.6.0

Environment

.NET SDK 10.0.300

Runtime: Microsoft.AspNetCore.App 10.0.8

OS Platform: Windows

Application Insights: workspace-based, Custom metrics with dimensions enabled

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.


Answer accepted by question author
Christos Panagiotidis 3,551 Reputation points
2026-07-15T08:48:11.9666667+00:00

Your Histogram is supported, and the exporter configuration is sufficient. A metric that reaches customMetrics but never appears in metric definitions is not an expected “histograms are log-only” limitation.

First, open Metrics from the Application Insights component, not the linked Log Analytics workspace. Use the Application Insights resource as the scope and azure.applicationinsights as the namespace. A workspace-scoped Logs query can see customMetrics, while the metric-store series belongs to the Application Insights resource.

Then emit a uniquely named Counter with no tags for at least two minutes. If it appears, the pipeline works and the dimensions are the issue. Every tag combination is a time series, with a limit of 5,000 per metric in 24 hours; a company-id dimension can reach that quickly. If the no-tag metric is present in customMetrics but still absent from the component’s metric definitions after 10–15 minutes, capture the metric name, UTC time, component resource ID, and exporter version for an Azure Monitor support case. That result points to a backend metric-store write issue, not missing SDK configuration.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Yaroslav Vasko 20 Reputation points
    2026-07-24T07:36:20.1766667+00:00

    @Christos Panagiotidis
    Thank you for your comment and the detailed guidance.

    As suggested, I emitted a custom metric without any tags, and it appeared as expected. Interestingly, after that I retried emitting the original version of the custom metric with several tags, and it was also successfully stored in both the analytics and metrics namespaces.

    It appears that the issue has resolved itself in the meantime, or something may have changed on the application insights since my previous tests. At this point, everything seems to be working as expected. I will keep in mind the limitation of 5,000 tags per metric.

    Thank you for your assistance.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.