---
title: "Monitor Azure Cosmos DB with Nodinite: Databases, Containers, and Availability"
description: Monitor Azure Cosmos DB databases and containers with Nodinite. Detect reachability issues, inventory drift, and configuration changes from a single monitor view with proactive alerts and built-in visibility.
---

# <i class="fal fa-display" aria-hidden="true"></i> Monitoring Cosmos DB in Azure

Monitor your Azure Cosmos DB estate from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> with the same operational visibility you already use for the rest of your integration landscape. This page explains how the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Azure Agent][] discovers SQL (Core) API databases and containers, evaluates their availability, and surfaces changes in a regular [Monitor View][Monitor Views].

<sup><span class="nodinite-new-badge">New 7.9.x</span></sup> This feature adds native monitoring for Azure Cosmos DB databases and containers in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, including automatic discovery, availability monitoring, and configuration visibility.

* ✅ Discover databases and containers automatically without manual lists  
* ✅ Surface reachability problems as visible resources instead of silently skipping them  
* ✅ Keep inventory current as databases or containers are added or removed in Azure  
* ✅ Show configuration facts such as RU/s, autoscale maxima, partition keys, and TTL  
* ✅ Monitor the data itself with your own read-only queries ([Monitoring Scripts][Cosmos DB Monitoring Scripts])  
* ✅ Act on databases and containers with [Remote Actions][] ([Managing Cosmos DB][Azure Agent - Managing Cosmos DB])  

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> monitors each Azure Cosmos DB account through the connection details in the agent [Configuration][]. Once the account is known, the agent discovers all databases and all containers beneath them and presents them as monitored [Resources][]. Cosmos DB availability and drift then show up in the same workflow as other Azure services, such as [Azure Storage][Azure Agent - Monitoring Storage] and [Event Hubs][Azure Agent - Monitoring Event Hub], and next to the [Azure SQL Database][] monitoring of the Database agent.

## <i class="fal fa-diagram-project" aria-hidden="true"></i> How Cosmos DB Monitoring Works

The agent reads each database and container, reports the result to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Monitoring Service][], and state changes reach your team through [Alarm Plugins][].

<div class="mermaid">
graph LR
    subgraph "Azure"
        A["fa:fa-database Cosmos DB Account"]
        B["fa:fa-database Database"]
        C["fa:fa-boxes Container"]
    end
    subgraph "Nodinite"
        D["fa:fa-monitor-waveform Azure Agent"]
        E["fa:fa-check OK<br/>Read succeeds"]
        F["fa:fa-ban Unavailable<br/>Read fails"]
        G["fa:fa-bell Alarm Plugins"]
    end
    A --> B
    B --> C
    D -->|"Read"| A
    D --> E
    D --> F
    F --> G
    style D fill:#2678BD,color:#fff
    style E fill:#93d16d
    style F fill:#c33d34,color:#fff
</div>

*Diagram: The Azure Agent checks the Cosmos DB account and exposes each database and container as a monitored resource in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>; a successful read is OK (green), a failed read is Unavailable (red) and raises an alert.*

## <i class="fal fa-sliders-h" aria-hidden="true"></i> Monitoring Features

* <i class="fal fa-radar" aria-hidden="true"></i> **Automatic discovery** – New databases and containers appear without manual reconfiguration.
* <i class="fal fa-rotate-right" aria-hidden="true"></i> **Continuous re-discovery** – Each polling cycle updates the inventory and removes entities that are genuinely gone.
* <i class="fal fa-folder" aria-hidden="true"></i> **Category-based monitoring** – <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> groups databases and containers in [Categories][] for clear ownership and filtering.
* <i class="fal fa-users-class" aria-hidden="true"></i> **Role-based visibility** – Share access with [Users][] through one or more [Role][Roles]-based [Monitor Views][].
* <i class="fal fa-chart-simple" aria-hidden="true"></i> **Configuration facts** – The resource shows RU/s, autoscale max, partition key, and TTL details.

## <i class="fal fa-traffic-light-go" aria-hidden="true"></i> State Evaluation for Cosmos DB

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> creates a [Resource][Resources] for each monitored database and container. The resource state is based on the agent's ability to read it successfully. Override the evaluation for any [Resource][Resources] with the [Expected State][] option.

|State|Meaning|What the user sees|Available remote actions|
|---|---|---|---|
|✅ OK|The database or container is reachable and readable|Green state with no warning text|<i class="fal fa-circle-info" aria-hidden="true"></i> [Details][Azure Agent - Managing Cosmos DB - Details]<br/><i class="fal fa-file-lines" aria-hidden="true"></i> [Approved Queries][Azure Agent - Managing Cosmos DB - Query]<br/><i class="fal fa-gauge" aria-hidden="true"></i> [Throughput][Azure Agent - Managing Cosmos DB - Throughput]<br/><i class="fal fa-key" aria-hidden="true"></i> [Keys][Azure Agent - Managing Cosmos DB - Keys]<br/><i class="fal fa-plus" aria-hidden="true"></i> [Create or Delete Containers][Azure Agent - Managing Cosmos DB - Create and Delete Containers]<br/><i class="fal fa-sign-out" aria-hidden="true"></i> [Post Document][Azure Agent - Managing Cosmos DB - Post]|
|🚫 Unavailable|The account is unreachable, the connection string is invalid, or the container cannot be read|A red resource with an explanatory message|<i class="fal fa-circle-info" aria-hidden="true"></i> [Details][Azure Agent - Managing Cosmos DB - Details]<br/><i class="fal fa-key" aria-hidden="true"></i> [Keys][Azure Agent - Managing Cosmos DB - Keys]|

The monitoring model is intentionally simple:

* <i class="fal fa-lightbulb-on" aria-hidden="true"></i> **A read success is OK** – healthy resources remain green.
* ⚠️ **A read failure is visible** – a broken account or container becomes UNAVAILABLE instead of disappearing silently.
* <i class="fal fa-rotate-right" aria-hidden="true"></i> **Resources are removed only after sustained absence** – if a database or container is genuinely deleted in Azure, it disappears after three missed cycles.

When a resource is Unavailable, check the connection string, the [Azure rights][Prerequisites - Azure rights] (the [least privileges][AzureApplicationsAccess - Least Privileges] page lists the role for Cosmos DB accounts), and that the [firewall][Prerequisites - Firewall] allows HTTPS to `*.documents.azure.com`.

### <i class="fal fa-database" aria-hidden="true"></i> Databases

Each Cosmos DB database is represented as a resource with details such as:

* Account name
* Number of containers
* Provisioned RU/s
* Autoscale max RU/s

If the account becomes unreachable or the database cannot be read, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> marks the resource **Unavailable**, and the user sees the connection or access problem directly in the monitor view.

### <i class="fal fa-boxes" aria-hidden="true"></i> Containers

Each container resource shows the container's own configuration facts:

* Partition key path
* Provisioned RU/s
* Autoscale max RU/s
* Default TTL

If a single container cannot be read, only that container becomes **Unavailable**. Healthy containers remain visible and usable.

## <i class="fal fa-history" aria-hidden="true"></i> Alert History and Operational Awareness

When an incident happens, review the event history for the affected database or container in the same way as other monitored resources. Use the history capabilities of your [Monitor View][Monitor Views] to review whether the issue started with a connection problem, an access issue, or a resource removal. Learn more in the [Add or manage Monitor View][] guide and the [Resource State History][] user guide.

## <i class="fal fa-question" aria-hidden="true"></i> Frequently Asked Questions

Use the [Troubleshooting][] guide for known issues with the Azure Agent.

### <i class="fal fa-square-plus" aria-hidden="true"></i> What is monitored?

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> monitors Azure Cosmos DB SQL (Core) API databases and containers, including reachability, inventory drift, and configuration facts. It does not alert on RU consumption or latency metrics. To monitor the data in a container, such as stuck messages or old documents, add [Monitoring Scripts][Cosmos DB Monitoring Scripts]: read-only queries judged against thresholds, a health value, or a return code.

### <i class="fal fa-square-plus" aria-hidden="true"></i> What happens if the account is unreachable?

The monitored account resource becomes **Unavailable** with a plain-language explanation. Connection-string problems, rotated keys, and access issues therefore show up immediately in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>. Use the [Keys][Azure Agent - Managing Cosmos DB - Keys] Remote Action to check the masked connection details.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-wrench" aria-hidden="true"></i> [Manage Cosmos DB][Azure Agent - Managing Cosmos DB]  
* <i class="fal fa-heart-pulse" aria-hidden="true"></i> [Monitor the data with Monitoring Scripts][Cosmos DB Monitoring Scripts]  
* <i class="fal fa-edit" aria-hidden="true"></i> [Configure the Azure Agent][Configuration]  
* <i class="fal fa-cloud" aria-hidden="true"></i> [Azure Logging and Monitoring Overview][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-cloud" aria-hidden="true"></i> [Azure Monitoring Agent][Azure Agent]  
* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [Prerequisites][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Azure SQL Database][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Monitoring Azure Storage][Azure Agent - Monitoring Storage]  
* <i class="fal fa-lightbulb-on" aria-hidden="true"></i> [Resources][]  
* <i class="fal fa-folder" aria-hidden="true"></i> [Categories][]  
* <i class="fal fa-box-open" aria-hidden="true"></i> [Applications][]  
* <i class="fal fa-bell" aria-hidden="true"></i> [Alarm Plugins][]  
* <i class="fal fa-question" aria-hidden="true"></i> [Troubleshooting][]  

[Add or manage Monitor View]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/add-or-manage-monitor-view/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[Applications]:https://docs.nodinite.com/administration/monitor-management/applications/features/what-is-an-application/
[Azure Agent]:https://docs.nodinite.com/logging-and-monitoring/azure/overview/
[Azure Agent - Managing Cosmos DB]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/managing-cosmos-db/
[Azure Agent - Managing Cosmos DB - Create and Delete Containers]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/managing-cosmos-db/#fa-plus-create-and-delete-containers
[Azure Agent - Managing Cosmos DB - Details]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/managing-cosmos-db/#fa-magnifying-glass-details-and-document-browsing
[Azure Agent - Managing Cosmos DB - Keys]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/managing-cosmos-db/#fa-key-keys-and-secret-handling
[Azure Agent - Managing Cosmos DB - Post]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/managing-cosmos-db/#fa-boxes-cosmos-db---container
[Azure Agent - Managing Cosmos DB - Query]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/managing-cosmos-db/#fa-file-lines-approved-queries
[Azure Agent - Managing Cosmos DB - Throughput]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/managing-cosmos-db/#fa-arrow-up-right-from-square-throughput-and-cost-guardrails
[Azure Agent - Monitoring Event Hub]:https://docs.nodinite.com/logging-and-monitoring/azure/features/event-hub/monitoring-event-hub/
[Azure Agent - Monitoring Storage]:https://docs.nodinite.com/logging-and-monitoring/azure/features/storage/monitoring-azure-storage/
[Azure Logging and Monitoring Overview]:https://docs.nodinite.com/logging-and-monitoring/azure/features/overview/
[Azure SQL Database]:https://docs.nodinite.com/logging-and-monitoring/database/features/azure-sql-database/overview/
[AzureApplicationsAccess - Least Privileges]:https://docs.nodinite.com/install-and-update/troubleshooting/azure/azure-application-access-least-privileges/#permission-table
[Categories]:https://docs.nodinite.com/administration/monitor-management/categories/features/what-is-a-category/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/configuration/
[Cosmos DB Monitoring Scripts]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/cosmos-db-monitoring-scripts/
[Expected State]:https://docs.nodinite.com/administration/monitor-management/resources/features/expected-state/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/prerequisites/
[Prerequisites - Azure rights]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/prerequisites/#fa-cloud-what-azure-user-rights-and-services-does-the-azure-agent-require
[Prerequisites - Firewall]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/prerequisites/#fa-shield-check-what-firewall-settings-are-required-for-the-azure-agent
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Resource State History]:https://docs.nodinite.com/getting-started/monitor/resource-state-history/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/azure/troubleshooting/overview/
[Users]:https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/