Skip to content

Commit 32232ac

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into cdnfreshness5
2 parents ad1a2bd + 13f596a commit 32232ac

32 files changed

+260
-170
lines changed

articles/energy-data-services/release-notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ Azure Data Manager for Energy Preview is updated on an ongoing basis. To stay up
2424
<hr width = 100%>
2525

2626
## February 2023
27+
28+
### Product Access Update
29+
30+
Beginning on February 15, 2023, customers of Microsoft Energy Data Services can search for and provision their instances of the product without a request for access. Customers can go directly to the Azure Marketplace to create an instance under their selected subscription.
31+
32+
2733
### Product Billing Update
2834

2935
Microsoft Energy Data Services will begin billing February 15, 2023. Prices will be based on a fixed per-hour consumption rate at a 50 percent discount during preview.

articles/postgresql/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@
511511
- name: Monitor and tune overview
512512
href: flexible-server/concepts-monitoring.md
513513
displayName: monitor, metrics
514+
- name: Workbooks
515+
href: flexible-server/concepts-workbooks.md
514516
- name: Logs
515517
href: flexible-server/concepts-logging.md
516518
displayName: monitor, server logs
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: Monitor Azure Database for PostgreSQL Flexible Server by using Azure Monitor workbooks
3+
description: This article describes how you can monitor Azure Database for PostgreSQL Flexible Server by using Azure Monitor workbooks.
4+
author: pradeepkintali
5+
ms.author: prkint
6+
ms.reviewer: maghan
7+
ms.date: 02/23/2023
8+
ms.service: postgresql
9+
ms.subservice: flexible-server
10+
ms.topic: conceptual
11+
---
12+
13+
# Monitor Azure Database for PostgreSQL Flexible Server by using Azure Monitor workbooks
14+
15+
[!INCLUDE[applies-to-postgresql-flexible-server](../includes/applies-to-postgresql-flexible-server.md)]
16+
17+
Azure Database for PostgreSQL Flexible Server is now integrated with Azure Monitor workbooks. Workbooks give you a flexible canvas for analyzing data and creating rich visual reports within the Azure portal. Workbooks allow you to tap into multiple data sources across Azure and combine them into unified interactive experiences. Workbook templates serve as curated reports designed for flexible reuse by various users and teams.
18+
19+
When you open a template, you create a transient workbook that's populated with the contents of the template. With this integration, the server links to workbooks and a few sample templates, which can help you monitor the service at scale. You can edit these templates, customize them to your requirements, and pin them to the dashboard to create a focused and organized view of Azure resources.
20+
21+
In this article, you learn about the various workbook templates available for your flexible server.
22+
23+
Azure Database for PostgreSQL Flexible Server has two available templates:
24+
25+
- **Overview**: Displays an instance summary and top-level metrics to help you visualize and understand the resource utilization on your server. This template displays the following views:
26+
27+
- Server Summary
28+
- Database Summary
29+
- Connection Metrics
30+
- Performance Metrics
31+
- Storage Metrics
32+
33+
- **Enhanced Metrics**: Displays a summary of Enhanced Metrics for Azure Database for PostgreSQL Flexible Server with more fine-grained database monitoring. To enable these metrics, please turn ON the server 'parameter metrics.collector_database_activity' and 'metrics.autovacuum_diagnostics'. These parameters are dynamic and don't require a server restart. For more information, see [Enhanced Metrics](./concepts-monitoring.md#enhanced-metrics). This template displays the following views:
34+
35+
- Activity Metrics
36+
- Database Metrics
37+
- Autovacuum Metrics
38+
- Replication Metrics
39+
40+
You can also edit and customize these templates according to your requirements. For more information, see [Azure Workbooks](../../azure-monitor/visualize/workbooks-overview.md).
41+
42+
## Access the workbook templates
43+
44+
To view the templates in the Azure portal, go to the **Monitoring*- pane for Azure Database for PostgreSQL Flexible Server, and then select **Workbooks**.
45+
46+
:::image type="content" source="./media/concepts-workbooks/monitor-workbooks-all.png" alt-text="Screenshot showing the Overview, Enhanced Metrics templates on the Workbooks pane.":::
47+
48+
## Next steps
49+
50+
- Learn about [Azure workbooks access control](../../azure-monitor/visualize/workbooks-overview.md#access-control).
51+
- Learn more about [Azure workbooks visualization options](../../azure-monitor/visualize/workbooks-visualizations.md).
102 KB
Loading
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
---
2+
title: include file
3+
description: include file
4+
services: event-hubs
5+
author: spelluru
6+
ms.service: event-hubs
7+
ms.topic: include
8+
ms.date: 02/27/2023
9+
ms.author: spelluru
10+
ms.custom: "include file"
11+
12+
---
13+
14+
## Sign in to Azure
15+
16+
Sign in to the [Azure portal](https://portal.azure.com).
17+
18+
## Create an event hub
19+
20+
Before Stream Analytics can analyze the fraudulent calls data stream, the data needs to be sent to Azure. In this tutorial, you'll send data to Azure by using [Azure Event Hubs](../../event-hubs/event-hubs-about.md).
21+
22+
Use the following steps to create an event hub and send call data to that event hub:
23+
24+
1. Sign in to the [Azure portal](https://portal.azure.com/).
25+
2. Select **Create a resource** > **Internet of Things** > **Event Hubs**. On the **Event Hubs** page, select **Create**.
26+
27+
:::image type="content" source="media/event-generator-app/find-event-hub-resource.png" lightbox="media/event-generator-app/find-event-hub-resource.png" alt-text="Screenshot showing the Event Hubs creation page.":::
28+
29+
If you don't see **Event Hubs** on the **Internet of Things** page, type **Event Hubs** in the search box and select it from the results. Then, select **Event Hubs** on the **Marketplace** page.
30+
3. On the **Create Namespace** page, follow these steps:
31+
1. Select an **Azure subscription** where you want to create the event hub.
32+
1. For **Resource group**, select **Create new** and enter a name for the resource group. The Event Hubs namespace is created in this resource group.
33+
1. For **Namespace name**, enter a unique name for the Event Hubs namespace.
34+
1. For **Location**, select the region in which you want to create the namespace.
35+
1. For **Pricing tier**, select **Standard**.
36+
1. Select **Review + create** at the bottom of the page.
37+
38+
:::image type="content" source="media/event-generator-app/create-event-hub-namespace.png" alt-text="Screenshot showing the Create Namespace page.":::
39+
1. On the **Review + create** page of the namespace creation wizard, select **Create** at the bottom of the page after reviewing all settings.
40+
5. After the namespace is deployed successfully, select **Go to resource** to navigate to the **Event Hubs Namespace** page.
41+
6. On the **Event Hubs Namespace** page, select **+Event Hub** on the command bar.
42+
43+
:::image type="content" source="media/event-generator-app/add-event-hub-button.png" alt-text="Screenshot showing the Add event hub button on the Event Hubs Namespace page.":::
44+
1. On the **Create Event Hub** page, enter a **Name** for the event hub. Set the **Partition Count** to 2. Use the default options in the remaining settings and select **Review + create**.
45+
46+
:::image type="content" source="media/event-generator-app/create-event-hub-portal.png" alt-text="Screenshot showing the Create event hub page.":::
47+
1. On the **Review + create** page, select **Create** at the bottom of the page. Then wait for the deployment to succeed.
48+
49+
### Grant access to the event hub and get a connection string
50+
51+
Before an application can send data to Azure Event Hubs, the event hub must have a policy that allows access. The access policy produces a connection string that includes authorization information.
52+
53+
1. On the **Event Hubs Namespace**, select **Event Hubs** under **Entities** on the left menu, and then select the event hub you created.
54+
55+
:::image type="content" source="media/event-generator-app/select-event-hub.png" alt-text="Screenshot showing the selection of an event hub on the Event Hubs page.":::
56+
1. On the **Event Hubs instance** page, select **Shared access policies** under **Settings** on the left menu, and then select **+ Add** on the command bar.
57+
2. Name the policy **MyPolicy**, select **Manage**, and then select **Create**.
58+
59+
:::image type="content" source="media/event-generator-app/create-event-hub-access-policy.png" alt-text="Screenshot showing Shared access policies page for an event hub.":::
60+
3. Once the policy is created, select the policy name to open the policy. Find the **Connection string–primary key**. Select the **copy** button next to the connection string.
61+
62+
:::image type="content" source="media/event-generator-app/save-connection-string.png" alt-text="Screenshot showing the primary connection string of the Event Hubs namespace you created.":::
63+
4. Paste the connection string into a text editor. You need this connection string in the next section.
64+
65+
The connection string looks as follows:
66+
67+
`Endpoint=sb://<Your event hub namespace>.servicebus.windows.net/;SharedAccessKeyName=<Your shared access policy name>;SharedAccessKey=<generated key>;EntityPath=<Your event hub name>`
68+
69+
Notice that the connection string contains multiple key-value pairs separated with semicolons: **Endpoint**, **SharedAccessKeyName**, **SharedAccessKey**, and **EntityPath**.
70+
71+
## Start the event generator application
72+
73+
Before you start the TelcoGenerator app, you should configure it to send data to the Azure Event Hubs you created earlier.
74+
75+
1. Extract the contents of [TelcoGenerator.zip](https://aka.ms/asatelcodatagen) file.
76+
2. Open the `TelcoGenerator\TelcoGenerator\telcodatagen.exe.config` file in a text editor of your choice There's more than one `.config` file, so be sure that you open the correct one.
77+
3. Update the `<appSettings>` element in the config file with the following details:
78+
79+
* Set the value of the **EventHubName** key to the value of the **EntityPath** at the end of the connection string.
80+
* Set the value of the **Microsoft.ServiceBus.ConnectionString** key to the connection string **without** the EntityPath value at the end. **Don't forget** to remove the semicolon that precedes the EntityPath value.
81+
4. Save the file.
82+
83+
5. Next open a command window and change to the folder where you unzipped the TelcoGenerator application. Then enter the following command:
84+
85+
```cmd
86+
.\telcodatagen.exe 1000 0.2 2
87+
```
88+
89+
This command takes the following parameters:
90+
* Number of call data records per hour.
91+
* Percentage of fraud probability, which is how often the app should simulate a fraudulent call. The value 0.2 means that about 20% of the call records will look fraudulent.
92+
* Duration in hours, which is the number of hours that the app should run. You can also stop the app at any time by ending the process (**Ctrl+C**) at the command line.
93+
94+
After a few seconds, the app starts displaying phone call records on the screen as it sends them to the event hub. The phone call data contains the following fields:
95+
96+
|**Record** |**Definition** |
97+
|---------|---------|
98+
|CallrecTime | The timestamp for the call start time. |
99+
|SwitchNum | The telephone switch used to connect the call. For this example, the switches are strings that represent the country/region of origin (US, China, UK, Germany, or Australia). |
100+
|CallingNum | The phone number of the caller. |
101+
|CallingIMSI | The International Mobile Subscriber Identity (IMSI). It's a unique identifier of the caller. |
102+
|CalledNum | The phone number of the call recipient. |
103+
|CalledIMSI | International Mobile Subscriber Identity (IMSI). It's a unique identifier of the call recipient. |
104+
105+
## Create a Stream Analytics job
106+
107+
Now that you have a stream of call events, you can create a Stream Analytics job that reads data from the event hub.
108+
109+
1. To create a Stream Analytics job, navigate to the [Azure portal](https://portal.azure.com/).
110+
2. Select **Create a resource** and search for **Stream Analytics job**. Select the **Stream Analytics job** tile and select **Create**.
111+
1. On the **New Stream Analytics job** page, follow these steps:
112+
1. For **Subscription**, select the subscription that contains the Event Hubs namespace.
113+
1. For **Resource group**, select the resource group you created earlier.
114+
1. In the **Instance details** section, For **Name**, enter a unique name for the Stream Analytics job.
115+
1. For **Region**, select the region in which you want to create the Stream Analytics job. We recommend that you place the job and the event hub in the same region for best performance and so that you don't pay to transfer data between regions.
116+
1. For **Hosting environment**< select **Cloud** if it's not already selected. Stream Analytics jobs can be deployed to cloud or edge. **Cloud** allows you to deploy to Azure Cloud, and **Edge** allows you to deploy to an IoT Edge device.
117+
1. For **Streaming units**, select **1**. Streaming units represent the computing resources that are required to execute a job. By default, this value is set to 1. To learn about scaling streaming units, see [understanding and adjusting streaming units](../stream-analytics-streaming-unit-consumption.md) article.
118+
1. Select **Review + create** at the bottom of the page.
119+
120+
![Create an Azure Stream Analytics job](media/event-generator-app/create-stream-analytics-job.png)
121+
1. On the **Review + create** page, review settings, and then select **Create** to create the Stream Analytics job.
122+
5. After the job is deployed, select **Go to resource** to navigate to the **Stream Analytics job** page.
123+
124+
## Configure job input
125+
126+
The next step is to define an input source for the job to read data using the event hub you created in the previous section.
127+
128+
1. On the **Stream Analytics job** page, in the **Job Topology** section on the left menu, select **Inputs**.
129+
2. On the **Inputs** page, select **+ Add stream input** and **Event hub**.
130+
131+
:::image type="content" source="media/event-generator-app/add-input-event-hub-menu.png" lightbox="media/event-generator-app/add-input-event-hub-menu.png" alt-text="Screenshot showing the Input page for a Stream Analytics job.":::
132+
3. On the **Event hub** page, follow these steps:
133+
1. For **Input alias**, enter **CallStream**. Input alias is a friendly name to identify your input. Input alias can contain alphanumeric characters, hyphens, and underscores only and must be 3-63 characters long.
134+
1. For **Subscription**, select the Azure subscription where you created the event hub. The event hub can be in same or a different subscription as the Stream Analytics job.
135+
1. For **Event Hubs namespace**, select the Event Hubs namespace you created in the previous section. All the namespaces available in your current subscription are listed in the dropdown.
136+
1. For **Event hub name**, select the event hub you created in the previous section. All the event hubs available in the selected namespace are listed in the dropdown.
137+
1. For **Event hub consumer group**, keep the **Create new** option selected so that a new consumer group is created on the event hub. We recommend that you use a distinct consumer group for each Stream Analytics job. If no consumer group is specified, the Stream Analytics job uses the `$Default` consumer group. When a job contains a self-join or has multiple inputs, some inputs later might be read by more than one reader. This situation affects the number of readers in a single consumer group.
138+
1. For **Authentication mode**, select **Connection string**. It's easier to test the tutorial with this option.
139+
1. For **Event hub policy name**, select **Use existing**, and then select the policy you created earlier.
140+
1. Select **Save** at the bottom of the page.
141+
142+
:::image type="content" source="media/event-generator-app/configure-stream-analytics-input.png" alt-text="Screenshot showing the Event Hubs configuration page for an input.":::
143+
30.5 KB
Loading
36 KB
Loading
40.6 KB
Loading
59 KB
Loading

0 commit comments

Comments
 (0)