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/query-azure-monitor-workspaces.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ To set up Azure Active Directory authentication, follow the steps below:
35
35
36
36
### Register an app with Azure Active Directory
37
37
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?tabs=portal)
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
<<<<Is this required ?>>>>>
41
41
1. On the app's overview page, select API permissions.
@@ -107,31 +107,32 @@ Save the access token from the response for use in the following HTTP requests.
107
107
108
108
### GET/query
109
109
110
-
```
111
-
GET https://management.azure.com/subscriptions/<subscriptionId>/resourcegroups/<resourceGroupName>/providers/microsoft.monitor/accounts/<workspace name>/api/v1/label/__name__/values?api-version=2021-06-01-preview
112
-
--header 'Authorization: Bearer <access token>'
113
-
```
114
-
When using the management end point, request a token using `--data-urlencode 'resource= https://management.azure.com'`
110
+
```
111
+
GET https://management.azure.com/subscriptions/<subscriptionId>/resourcegroups/<resourceGroupName>/providers/microsoft.monitor/accounts/<workspace name>/api/v1/label/__name__/values?api-version=2021-06-01-preview
112
+
--header 'Authorization: Bearer <access token>'
113
+
```
114
+
When using the management end point, request a token using `--data-urlencode 'resource= https://management.azure.com'`
115
115
116
116
### POST / query
117
117
118
118
POST uses the Azure Monitor workspace query endpoint
group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{ workload_type="deployment"}) by (pod)'
130
+
```
129
131
130
-
```
131
-
When using the Azure Monitor workspace query endpoint, request a token using `--data-urlencode 'resource= https://prometheus.monitor.azure.com'`
132
+
When using the Azure Monitor workspace query endpoint, request a token using `--data-urlencode 'resource= https://prometheus.monitor.azure.com'`
132
133
133
134
Find your workspace's query endpoint on the overview page.
134
-
:::image type="content" source="./media/query-azure-monitor-workspaces/find-query-endpoint.png" lightbox='./media/query-azure-monitor-workspaces/find-query-endpoint.png" alt-text="A screenshot sowing the query endpoin on the Azure Monitor workspace overview page.":::
135
+
:::image type="content" source="./media/query-azure-monitor-workspaces/find-query-endpoint.png" lightbox="./media/query-azure-monitor-workspaces/find-query-endpoint.png" alt-text="A screenshot sowing the query endpoin on the Azure Monitor workspace overview page.":::
135
136
## Supported APIs
136
137
The following queries are supported:
137
138
@@ -169,7 +170,7 @@ For the full specification of OSS prom APIs, see [Prometheus HTTP API](https://p
169
170
+ Experimental features
170
171
The experimental features such as exemplars aren't supported.
171
172
172
-
For more information on Prometheus metrics limits, see [Prometheus metrics](https://learn.microsoft.com/en-us/azure/azure-monitor/service-limits#prometheus-metrics)
173
+
For more information on Prometheus metrics limits, see [Prometheus metrics](../../azure-monitor/service-limits.md#prometheus-metrics)
173
174
174
175
>[!NOTE]
175
-
> Some of the limits can be increased. Please contact [PromWebApi]([email protected]) to request an increase for these limits on your Azure Monitor workspace.
176
+
> Some of the limits can be increased. Please contact [PromWebApi](mailto:[email protected]) to request an increase for these limits on your Azure Monitor workspace.
0 commit comments