# Remove case-only distinctions before combining metrics in Managed Prometheus

> Will Azure Managed Prometheus preserve two series that differ only by letter case?

- Canonical URL: https://update.dsesecurity.com/updates/dse-20260909-595-remove-case-only-distinctions-before-combining-metrics-in-managed-prometheus/
- Publisher: Detection Systems & Engineering (DSE Security)
- Author: DSE Security Editorial Team
- Published: 2026-09-10T00:22:01+00:00
- Modified: 2026-09-10T02:14:32+00:00
- Last reviewed by DSE: 2026-09-09
- Resource type: Guide
- DSE priority: Information
- Topics: IT
- Reading time: 2 minutes

## What you need to know

Will Azure Managed Prometheus preserve two series that differ only by letter case?

## Potentially affected

Prometheus metric producers sending case-distinguished names or labels to Azure Monitor managed service for Prometheus.

## DSE recommendation

Review metric and label identities for case-only collisions before directing their producers into the same managed workspace.

## Article

## Source facts

Azure Managed Prometheus treats metric names, label names and label values case-insensitively, unlike native self-managed Prometheus. Series differing only by letter case become one series. Samples arriving at the same timestamp for those case-only variants can have one randomly discarded, and returned casing is not predictable. Microsoft recommends producing or scraping with a consistent case. [Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-monitor/metrics/prometheus-api-promql).

## Applicability

Use this identity check when moving or combining self-managed metric streams. Decide whether case differences merely express inconsistent spelling or actually distinguish different entities in the producer’s model.

## DSE recommendation

Review metric and label identities for case-only collisions before directing their producers into the same managed workspace. Where distinct entities currently rely on case, design a genuinely distinct identifier rather than simply lowercasing both into the same value. Coordinate naming changes with dashboard and rule owners, preserving the intended meaning of each series. Do not use the casing returned by one query as a durable identity convention.

## Verification

In a bounded test, inspect representative source series and compare their intended identities with the managed result. Include case-only variants and simultaneous timestamps where appropriate, without claiming that the surviving variant will be deterministic. Confirm the revised identifiers remain distinct and that affected queries select the intended population. Retain the producer-to-series mapping as the acceptance evidence before expanding collection.

## Official references

[Microsoft Learn: Managed Prometheus query behavior](https://learn.microsoft.com/en-us/azure/azure-monitor/metrics/prometheus-api-promql). Source reviewed September 9, 2026.

## Primary reference

- Name: Query Prometheus Metrics using the API and PromQL - Azure Monitor | Microsoft Learn
- Authority: Microsoft Learn
- URL: https://learn.microsoft.com/en-us/azure/azure-monitor/metrics/prometheus-api-promql
- Source publication date: Not stated by the source

## Citation and use

Preferred citation: “Remove case-only distinctions before combining metrics in Managed Prometheus,” DSE Security, https://update.dsesecurity.com/updates/dse-20260909-595-remove-case-only-distinctions-before-combining-metrics-in-managed-prometheus/
Publishing principles: https://update.dsesecurity.com/updates/dse-updates-editorial-methodology/
Usage and citation policy: https://update.dsesecurity.com/usage/
Copyright © 2026 Detection Systems & Engineering. All rights reserved.
