Skip to content

Commit 4460933

Browse files
committed
case insensitivity
1 parent e0d8936 commit 4460933

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

articles/azure-monitor/essentials/prometheus-metrics-scrape-configuration.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,6 @@ ms.reviewer: aul
1111

1212
This article provides instructions on customizing metrics scraping for a Kubernetes cluster with the [metrics addon](prometheus-metrics-enable.md) in Azure Monitor.
1313

14-
## Case sensitivity
15-
Azure managed Prometheus is a case insensitive system. If one time series differs from another only by a difference in the case of a string - metric name, label name, label value etc, it is treated as the same time series. This behavior is different from native open source Prometheus which is a case sensitive system.
16-
17-
In Azure managed Prometheus the follow time series are considered the same:
18-
19-
`diskSize(cluster=”eastus”, node=”node1”, filesystem=”usr_mnt”)`
20-
`diskSize(cluster=”eastus”, node=”node1”, filesystem=”usr_MNT”)`
21-
22-
The above examples are a single time series in time series database.
23-
- Any samples ingested against them are be stored as if they're scraped/ingested against a single time series.
24-
- If the examples above are ingested with the same timestamp, one of them is randomly dropped.
25-
- The casing that's stored in the time series database and returned in query, is unpredictable. Different casing may be returned at different times for the same time series.
26-
- Any metric name or label name/value matcher present in the query, is retrieved from time series database by making a case-insensitive comparison. If there is a case sensitive matcher in a query, it's automatically treated as a case-insensitive matcher when making string comparisons.
27-
28-
It is best practice to insure that a time series is produced or scraped using a single consistent case.
29-
30-
In OSS Prometheus the above time series are treated as two different time series. Any samples scraped/ingested against them are stored separately.
31-
3214
## Configmaps
3315

3416
Three different configmaps can be configured to change the default settings of the metrics addon:
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
ms.service: azure-monitor
3+
ms.topic: include
4+
ms.date: 08/04/2023
5+
ms.author: edbaynash
6+
author: EdB-MSFT
7+
---
8+
9+
## Case sensitivity
10+
Azure managed Prometheus is a case insensitive system. If one time series differs from another only by a difference in the case of a string - metric name, label name, label value etc, it is treated as the same time series. This behavior is different from native open source Prometheus which is a case sensitive system.
11+
12+
In Azure managed Prometheus the follow time series are considered the same:
13+
14+
`diskSize(cluster=”eastus”, node=”node1”, filesystem=”usr_mnt”)`
15+
`diskSize(cluster=”eastus”, node=”node1”, filesystem=”usr_MNT”)`
16+
17+
The above examples are a single time series in time series database.
18+
- Any samples ingested against them are be stored as if they're scraped/ingested against a single time series.
19+
- If the examples above are ingested with the same timestamp, one of them is randomly dropped.
20+
- The casing that's stored in the time series database and returned in query, is unpredictable. Different casing may be returned at different times for the same time series.
21+
- Any metric name or label name/value matcher present in the query, is retrieved from time series database by making a case-insensitive comparison. If there is a case sensitive matcher in a query, it's automatically treated as a case-insensitive matcher when making string comparisons.
22+
23+
It is best practice to insure that a time series is produced or scraped using a single consistent case.
24+
25+
In OSS Prometheus the above time series are treated as two different time series. Any samples scraped/ingested against them are stored separately.

0 commit comments

Comments
 (0)