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: docs/integrations/microsoft-azure/azure-database-for-postgresql.md
+29-96Lines changed: 29 additions & 96 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,105 +26,15 @@ Azure service sends monitoring data to Azure Monitor, which can then [stream dat
26
26
27
27
***PostgreSQL Audit logs**. Azure Database for PostgreSQL flexible server provides users with the ability to configure audit logs. Audit logs can be used to track database-level activity including connection, admin, DDL, and DML events. These types of logs are commonly used for compliance purposes. To learn more about the different log types and schemas collected for Azure Database for PostgreSQL, refer to the [Azure documentation](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-audit).
28
28
* Logs collection from [Azure Monitor](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-monitoring#logs) using our [Azure Event Hubs source](/docs/send-data/collect-from-other-data-sources/azure-monitoring/ms-azure-event-hubs-source/).
29
-
* Metrics collection using our [HTTP Logs and Metrics source](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-monitoring#metrics) via Azure Functions deployed using the ARM template.
29
+
* Metrics collection using our [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
30
30
31
31
You must explicitly enable diagnostic settings for each Azure Database for the PostgreSQL server you want to monitor. You can forward logs to the same event hub provided they satisfy the limitations and permissions as described [here](https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings?tabs=portal#destination-limitations).
32
32
33
33
When you configure the event hubs source or HTTP source, plan your source category to ease the querying process. A hierarchical approach allows you to make use of wildcards. For example: `Azure/DatabaseForPostgreSQL/Logs`, `Azure/DatabaseForPostgreSQL/Metrics`.
34
34
35
-
36
-
### Configure field in field schema
37
-
38
-
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Manage Data > Logs > Fields**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Configuration**, and then under **Logs** select **Fields**. You can also click the **Go To...** menu at the top of the screen and select **Fields**.
39
-
2. Search for the following fields:
40
-
-`tenant_name`. This field is tagged at the collector level. You can get the tenant name using the instructions in the [Microsoft Documentation](https://learn.microsoft.com/en-us/azure/active-directory-b2c/tenant-management-read-tenant-name#get-your-tenant-name).
41
-
-`location`. The region to which the resource name belongs.
42
-
-`subscription_id`. ID associated with a subscription where the resource is present.
43
-
-`resource_group`. The resource group name where the Azure resource is present.
44
-
-`provider_name`. Azure resource provider name (for example, Microsoft.Network).
45
-
-`resource_type`. Azure resource type (for example, storage accounts).
46
-
-`resource_name`. The name of the resource (for example, storage account name).
47
-
-`service_type`. Type of the service that can be accessed with an Azure resource.
48
-
-`service_name`. Services that can be accessed with an Azure resource (for example, Azure SQL databases in Azure SQL Server).
49
-
3. Create the fields if they are not present. Refer to [Manage fields](/docs/manage/fields/#manage-fields).
50
-
51
-
### Configure Field Extraction Rules
52
-
53
-
Create the following Field Extraction Rules (FER) for Azure Storage by following the instructions in the [Create a Field Extraction Rule](/docs/manage/field-extractions/create-field-extraction-rule/).
In this section, you will configure a pipeline for shipping metrics from Azure Monitor to an Event Hub, onto an Azure Function, and finally to an HTTP Source on a hosted collector in Sumo Logic.
119
-
120
-
1. Create a hosted collector and tag the `tenant_name` field. <br/><img src={useBaseUrl('img/integrations/microsoft-azure/Azure-Storage-Tag-Tenant-Name.png')} alt="Azure Tag Tenant Name" style={{border: '1px solid gray'}} width="500" />
121
-
2. [Configure an HTTP Source](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/#step-1-configure-an-http-source).
122
-
1. [Configure and deploy the ARM Template](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/#step-2-configure-azure-resources-using-arm-template).
123
-
1. [Export metrics to Event Hub](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/#step-3-export-metrics-for-a-particular-resource-to-event-hub). Perform the steps below for each Flexible PostgreSQL Server resource that you want to monitor.
124
-
1. Choose `Stream to an event hub` as the destination.
125
-
1. Select `AllMetrics`.
126
-
1. Use the Event hub namespace created by the ARM template in Step 2 above. You can create a new Event hub or use the one created by the ARM template. You can use the default policy `RootManageSharedAccessKey` as the policy name. <br/><img src={useBaseUrl('img/send-data/azureflexible-postgresqlserver-metrics.png')} alt="Azure flexible postgresql server metrics" style={{border: '1px solid gray'}} width="800" />
127
-
1. Tag the location field in the source with the right location value. <br/><img src={useBaseUrl('img/integrations/microsoft-azure/Azure-Storage-Tag-Location.png')} alt="Azure Database for PostgreSql Tag Location" style={{border: '1px solid gray'}} width="400" />
37
+
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
128
38
129
39
### Configure logs collection
130
40
@@ -159,15 +69,27 @@ Since this source contains logs from multiple regions, ensure that you do not ta
159
69
160
70
Now that you have set up data collection, install the Azure Database for PostgreSQL Sumo Logic app to use the pre-configured dashboards that provide visibility into your environment for real-time analysis of overall usage.
161
71
162
-
import AppInstallNoDataSourceV2 from '../../reuse/apps/app-install-index-apps-v2.md';
72
+
import AppInstallIndexV2 from '../../reuse/apps/app-install-index-option.md';
163
73
164
-
<AppInstallNoDataSourceV2/>
74
+
<AppInstallIndexV2/>
75
+
76
+
As part of the app installation process, the following fields will be created by default:
77
+
78
+
-`tenant_name`. This field is tagged at the collector level. You can get the tenant name using the instructions [here](https://learn.microsoft.com/en-us/azure/active-directory-b2c/tenant-management-read-tenant-name#get-your-tenant-name).
79
+
-`location`. The region the resource name belongs to.
80
+
-`subscription_id`. ID associated with a subscription where the resource is present.
81
+
-`resource_group`. The resource group name where the Azure resource is present.
82
+
-`provider_name`. Azure resource provider name (for example, Microsoft.Network).
83
+
-`resource_type`. Azure resource type (for example, storage accounts).
84
+
-`resource_name`. The name of the resource (for example, storage account name).
85
+
-`service_type`. Type of the service that can be accessed with an Azure resource.
86
+
-`service_name`. Services that can be accessed with an Azure resource (for example, in Azure Container Instances the service is Subscriptions).
165
87
166
88
## Viewing the Flexible Database for PostgreSQL dashboards
167
89
168
-
import ViewDashboards from '../../reuse/apps/view-dashboards.md';
90
+
import ViewDashboardsIndex from '../../reuse/apps/view-dashboards-index.md';
169
91
170
-
<ViewDashboards/>
92
+
<ViewDashboardsIndex/>
171
93
172
94
### Disk
173
95
@@ -250,6 +172,17 @@ The **Azure Database for PostgreSQL - Transactions** dashboard provides insights
|`Azure Database for PostgreSQL - Active Connections`| This alert is triggered when Average Active Connections Count is greater than 1000. | Count >= 1000 | Count < 1000 |
181
+
|`Azure Database for PostgreSQL - CPU Percent`| This alert is triggered when CPU Percentage is greater than 90. Also a warning type alert will be triggered when CPU Percentage is greater than 80. | Percentage >= 90 | Percentage < 90 |
182
+
|`Azure Database for PostgreSQL - Failed Connections`| This alert is triggered when Failed Connections Count is greater than 10. | Count >= 10 | Count < 10 |
183
+
|`Azure Database for PostgreSQL - Memory Percent`| This alert is triggered when Memory Percentage is greater than 80. Also a warning type alert will be triggered when Memory Percentage greater than 70. | percentage >= 80 | percentage < 80 |
184
+
|`Azure Database for PostgreSQL - Storage Percent`| This alert is triggered when Storage Percent greater than 95. Also a warning type alert will be triggered when Storage Percent greater than 90. | percentage >= 95 | percentage < 95 |
185
+
253
186
## Troubleshooting
254
187
255
188
### HTTP Logs and Metrics Source used by Azure Functions
0 commit comments