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-cosmos-db-for-postgresql.md
+36-95Lines changed: 36 additions & 95 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,105 +23,17 @@ For Azure Cosmos DB for PostgreSQL, you can collect the following logs and metri
23
23
Azure service sends monitoring data to Azure Monitor, which can then [stream data to Eventhub](https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/stream-monitoring-data-event-hubs). Sumo Logic supports:
24
24
25
25
* Logs collection from [Azure Monitor](https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-get-started) using our [Azure Event Hubs source](/docs/send-data/collect-from-other-data-sources/azure-monitoring/ms-azure-event-hubs-source/).
26
-
* Metrics collection using our [HTTP Logs and Metrics source](/docs/send-data/collect-from-other-data-sources/azure-monitoring/collect-metrics-azure-monitor/) via Azure Functions deployed using the ARM template.
26
+
* Metrics collection using our [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).
27
27
28
28
You must explicitly enable diagnostic settings for each Azure Cosmos DB for PostgreSQL cluster 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).
29
29
30
30
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/CosmosDBforPostgreSQL/Logs`, `Azure/CosmosDBforPostgreSQL/Metrics`.
31
31
32
-
33
-
### Configure field in field schema
34
-
35
-
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**.
36
-
2. Search for the following fields:
37
-
-`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).
38
-
-`location`. The region to which the resource name belongs to.
39
-
-`subscription_id`. ID associated with a subscription where the resource is present.
40
-
-`resource_group`. The resource group name where the Azure resource is present.
41
-
-`provider_name`. Azure resource provider name (for example, Microsoft.Network).
42
-
-`resource_type`. Azure resource type (for example, storage accounts).
43
-
-`resource_name`. The name of the resource (for example, storage account name).
44
-
-`service_type`. Type of the service that can be accessed with a Azure resource.
45
-
-`service_name`. Services that can be accessed with an Azure resource (for example, Azure SQL databases in Azure SQL Server).
46
-
3. Create the fields if they are not present. Refer to [Manage fields](/docs/manage/fields/#manage-fields).
47
-
48
-
### Configure Field Extraction Rules
49
-
50
-
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/). Create the rules below if they are not present.
Create the following metrics rules by following the instructions in [Create a metrics rule](/docs/metrics/metric-rules-editor/#create-a-metrics-rule). Create the rules below if they are not present.
93
-
94
-
#### Azure observability metadata extraction flexible PostgreSQL server level
In this section, you will configure a pipeline for shipping metrics from Azure Monitor to an Event Hub, on to an Azure Function, and finally to an HTTP Source on a hosted collector in Sumo Logic.
34
+
import MetricsSourceBeta from '../../reuse/metrics-source-beta.md';
116
35
117
-
1. Create hosted collector and tag `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" />
118
-
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).
119
-
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).
120
-
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.
121
-
1. Choose `Stream to an event hub` as destination.
122
-
1. Select `AllMetrics`.
123
-
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 ARM template. You can use the default policy `RootManageSharedAccessKey` as the policy name. <br/><img src={useBaseUrl('img/send-data/export-metrics-diagnostic-settings-cosmosdbforpostgresql.png')} alt="Azure flexible postgresql server metrics" style={{border: '1px solid gray'}} width="800" />
124
-
1. Tag the location field in the source with right location value. <br/><img src={useBaseUrl('img/integrations/microsoft-azure/Azure-Storage-Tag-Location.png')} alt="Azure CosmosDB for PostgreSql Tag Location" style={{border: '1px solid gray'}} width="400" />
36
+
<MetricsSourceBeta/>
125
37
126
38
### Configure logs collection
127
39
@@ -157,15 +69,27 @@ Since this source contains logs from multiple regions, ensure that you do not ta
157
69
158
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.
159
71
160
-
import AppInstallNoDataSourceV2 from '../../reuse/apps/app-install-index-apps-v2.md';
72
+
import AppInstallIndexV2 from '../../reuse/apps/app-install-index-option.md';
161
73
162
-
<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).
163
87
164
88
## Viewing the Azure Cosmos DB for PostgreSQL dashboards
165
89
166
-
import ViewDashboards from '../../reuse/apps/view-dashboards.md';
90
+
import ViewDashboardsIndex from '../../reuse/apps/view-dashboards-index.md';
167
91
168
-
<ViewDashboards/>
92
+
<ViewDashboardsIndex/>
169
93
170
94
### Overview
171
95
@@ -282,6 +206,23 @@ import AppUninstall from '../../reuse/apps/app-uninstall.md';
282
206
283
207
<AppUninstall/>
284
208
209
+
## Create monitors for Azure Cosmos DB for PostgreSQL
210
+
211
+
import CreateMonitors from '../../reuse/apps/create-monitors.md';
212
+
213
+
<CreateMonitors/>
214
+
215
+
### Azure Cosmos DB for PostgreSQL alerts
216
+
217
+
These alerts are metrics-based and will work for all Cosmos DB PostgreSQL instances.
|`Azure Cosmos DB for PostgreSQL - CPU Percent`| This alert is triggered when CPU usage spikes above 80% are detected for any Azure Cosmos DB for PostgreSQL instance. | Count > 80 | Count =< 70 |
222
+
|`Azure Cosmos DB for PostgreSQL - Memory Percentage`| This alert is triggered when average Memory utilization spikes above 80% are detected for any Azure Cosmos DB for PostgreSQL instance. | Count > 80 | Count =< 70 |
223
+
|`Azure Cosmos DB for PostgreSQL - Storage Percentage`| This alert is triggered when storage percentage goes above 70% for any Azure Cosmos DB for PostgreSQL instance. | Count > 80 | Count =< 70 |
224
+
225
+
285
226
## Troubleshooting
286
227
287
228
### HTTP Logs and Metrics Source used by Azure Functions
0 commit comments