# How to resolve Sprinto check monitoring Azure Cosmos DB Latency

### About

Sprinto Check: Azure CosmosDB latency should be monitored

Azure Cosmos DB is a globally distributed, multi-model database service for large-scale applications with high throughput and low latency requirements. Monitoring the latency of your Azure Cosmos DB is crucial for ensuring optimal performance, identifying potential issues, and maintaining a responsive user experience.

### Purpose

The Sprinto check for Azure Cosmos DB latency is actively monitoring and alerting the server-side latency metric. This monitoring helps you:

* Optimize Performance: Monitor the server-side latency to optimize the overall performance of your Cosmos DB.
* Proactive Issue Detection: Receive alerts if the latency deviates from expected values, allowing you to address potential issues proactively.
* User Experience Improvement: Understand and manage latency to ensure a responsive and seamless user experience for your applications.

### How to Resolve

To address this check, Sprinto provides a straightforward process to set up a monitoring alert within the Azure portal. Follow these steps to create a monitoring alert for Azure Cosmos DB latency:

#### Before you Begin

* Ensure you have "Admin" access to the Azure account to create monitoring alerts.
* Log in to Sprinto as an administrator.

#### Creating Monitoring Alert

1. Log in to the[ Azure portal](https://portal.azure.com/) using your credentials.
2. Navigate to the Cosmos DB resource you want to monitor.
3. In the left-hand menu, under Monitoring, select Metrics.
4. In the Metrics blade, choose the namespace Microsoft.DocumentDb/databaseAccounts.
5. Select the metric name as ServerSideLatencyDirect.
6. From the top side, click New Alert Rule.
7. On the Configuration Signal Logic drawer, select an Aggregation type and set a custom environment-specific threshold value.

{% hint style="info" %}
The Aggregation type can be selected based on your environment. You can choose Average as the Aggregation type if you have no preference.
{% endhint %}

8. From the Create Alert Rule window, on the Details tab, set an appropriate alert rule name.
9. Finally, click Review + Create to create the alert.

Once the alert is created, Sprinto retrieves the change and sets the assigned check status to "Passing."

If you need any assistance with the Sprinto check, please get in touch with Sprinto Support.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinto.com/monitors/cloud-and-infrastructure-monitoring/azure/how-to-resolve-sprinto-check-monitoring-azure-cosmos-db-latency.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
