You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/essentials/prometheus-api-promql.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ To set up Azure Active Directory authentication, follow the steps below:
38
38
1. To register an app, follow the steps in [Register an App to request authorization tokens and work with APIs](../logs/api/register-app-for-token.md?tabs=portal)
39
39
40
40
### Allow your app access to your workspace
41
-
Allow your app to query data from your Azure Monitor workspace.
41
+
Assign the *Monitoring Data Reader* role your app so it can query data from your Azure Monitor workspace.
42
42
43
43
1. Open your Azure Monitor workspace in the Azure portal.
44
44
@@ -78,7 +78,7 @@ curl -X POST 'https://login.microsoftonline.com/<tennant ID>/oauth2/token' \
@@ -204,6 +204,13 @@ The following limitations are in addition to those detailed in the Prometheus sp
204
204
205
205
For more information on Prometheus metrics limits, see [Prometheus metrics](../../azure-monitor/service-limits.md#prometheus-metrics)
206
206
207
+
> [!NOTE]
208
+
> Azure managed Prometheus is **case insensitive**. If one time series differs from another only by the casing of a string - metric name, label name, label value etc, it is treated the same time series. This behavior differs from native open source Prometheus which is a case sensitive system. For example, the following two time series are threated as the same time series in Azure managed Prometheus:
> For more information on scraping and case sensitivity, see [Customize scraping of Prometheus metrics in Azure Monitor](./prometheus-metrics-scrape-configuration.md#case-sensitivity)
Copy file name to clipboardExpand all lines: articles/azure-monitor/essentials/prometheus-metrics-scrape-configuration.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,24 @@ ms.reviewer: aul
11
11
12
12
This article provides instructions on customizing metrics scraping for a Kubernetes cluster with the [metrics addon](prometheus-metrics-enable.md) in Azure Monitor.
13
13
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:
The above examples are a single time series in time series database.
23
+
- Any samples ingested against them will be stored as if they are scraped/ingested against a single time series.
24
+
- If the examples above are ingested with the same timestamp, one of them will be dropped randomly.
25
+
- The casing that will be stored in the time series database and returned in query, is unpredictable. Different casing at different times for the same time series may be returned.
26
+
- Any metric name or label name/value matcher present in the query, will be retrieved from time series database by making a case-insensitive comparison. If there is a case sensitive matcher in a query, it is 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/scraped only in 1 unique casing.
29
+
30
+
In OSS Prometheus the above time series are treated as two different time series. Any samples scraped/ingested against them will be stored separately.
31
+
14
32
## Configmaps
15
33
16
34
Three different configmaps can be configured to change the default settings of the metrics addon:
0 commit comments