Skip to content

Commit cf03c64

Browse files
committed
rename
1 parent 6e11543 commit cf03c64

File tree

11 files changed

+15
-13
lines changed

11 files changed

+15
-13
lines changed
66.1 KB
Loading

articles/azure-monitor/essentials/query-azure-monitor-workspaces.md renamed to articles/azure-monitor/essentials/prometheus-api-promql.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Query metrics in an Azure Monitor workspace using PromQL
3-
description: Describes how to Query metrics in an Azure Monitor workspace using PromQL.
2+
title: Query Prometheus metrics using the API and PromQL
3+
description: Describes how to use the API to Query metrics in an Azure Monitor workspace using PromQL.
44
ms.topic: how-to
55
author: EdB-MSFT
66
ms.author: edbaynash
77
ms.date: 09/28/2022
88
ms.reviewer: aul
99
---
1010

11-
# Query Prometheus metrics from an Azure Monitor Workspace using PromQL.
11+
# Query Prometheus metrics using the API and PromQL.
1212

1313
Azure Monitor managed service for Prometheus (preview), collects metrics from Azure Kubernetes Clusters and stores them in an Azure Monitor workspace. PromQL - Prometheus query language, is a functional query language that allows you to query and aggregate time series data. Use PromQL to query and aggregate metrics stored in an Azure Monitor workspace.
1414

15-
This article describes how to query an Azure Monitor workspace using PromQL via REST API.
15+
This article describes how to query an Azure Monitor workspace using PromQL via the REST API.
1616
For more information on PromQL, see [Querying prometheus](https://prometheus.io/docs/prometheus/latest/querying/basics/).
1717

1818
## Prerequisites
@@ -46,24 +46,25 @@ Allow your app to query data from your Azure Monitor workspace.
4646

4747
1. Select Access control (IAM).
4848

49-
1. Select **Add**, then **Add role assignment** from the Access Control (IAM) page.
50-
:::image type="content" source="./media/query-azure-monitor-workspaces/access-control.png" lightbox="./media/query-azure-monitor-workspaces/access-control.png" alt-text="A screenshot showing the Azure Monitor workspace overview page":::
49+
1. Select **Add**, then **Add role assignment** from the Access Control (IAM) page.
50+
51+
:::image type="content" source="./media/prometheus-api-promql/access-control.png" lightbox="./media/prometheus-api-promql/access-control.png" alt-text="A screenshot showing the Azure Monitor workspace overview page":::
5152

5253
1. On the **Add role Assignment page**, search for *Monitoring*.
5354

5455
1. Select **Monitoring Data Reader**, then select the Members tab.
5556

56-
:::image type="content" source="./media/query-azure-monitor-workspaces/add-role-assignment.png" lightbox="./media/query-azure-monitor-workspaces/add-role-assignment.png" alt-text="A screenshot showing the Add role assignment page":::
57+
:::image type="content" source="./media/prometheus-api-promql/add-role-assignment.png" lightbox="./media/prometheus-api-promql/add-role-assignment.png" alt-text="A screenshot showing the Add role assignment page":::
5758

5859
1. Select **Select members**.
5960

60-
1. Search for the app that you registered in the Register an app with Azure Active Directory section and select it.
61+
1. Search for the app that you registered and select it.
6162

6263
1. Choose **Select**.
6364

6465
1. Select **Review + assign**.
6566

66-
:::image type="content" source="./media/query-azure-monitor-workspaces/select-members.png" lightbox="./media/query-azure-monitor-workspaces/select-members.png.png" alt-text="A screenshot showing the Add role assignment, select members page.":::
67+
:::image type="content" source="./media/prometheus-api-promql/select-members.png" lightbox="./media/prometheus-api-promql/select-members.png" alt-text="A screenshot showing the Add role assignment, select members page.":::
6768

6869
You've created your App registration and have assigned it access to query data from your Azure Monitor workspace. You can now generate a token and use it in a query.
6970

@@ -98,8 +99,9 @@ Save the access token from the response for use in the following HTTP requests.
9899

99100
## Query Endpoint
100101

101-
Find your workspace's query endpoint on the overview page.
102-
:::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 endpoint on the Azure Monitor workspace overview page.":::
102+
Find your workspace's query endpoint on the Azure Monitor workspace overview page.
103+
104+
:::image type="content" source="./media/prometheus-api-promql/find-query-endpoint.png" lightbox="./media/prometheus-api-promql/find-query-endpoint.png" alt-text="A screenshot sowing the query endpoint on the Azure Monitor workspace overview page.":::
103105

104106
## Supported APIs
105107
The following queries are supported:

0 commit comments

Comments
 (0)