---
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.
---

# :fa-display: Monitoring Cosmos DB in Azure

Monitor your Azure Cosmos DB estate from :Nodinite: with the same operational visibility you already use for the rest of your integration landscape. This page explains how the :Nodinite: [Azure Agent][] discovers SQL (Core) API databases and containers, evaluates their availability, and surfaces changes in a regular [Monitor View][Monitor Views].

:new7.9.x: This feature adds native monitoring for Azure Cosmos DB databases and containers in :Nodinite:, 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])  

:Nodinite: 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.

## :fa-diagram-project: How Cosmos DB Monitoring Works

The agent reads each database and container, reports the result to the :Nodinite: [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 :Nodinite:; a successful read is OK (green), a failed read is Unavailable (red) and raises an alert.*

## :fa-sliders-h: Monitoring Features

* :fa-radar: **Automatic discovery** – New databases and containers appear without manual reconfiguration.
* :fa-rotate-right: **Continuous re-discovery** – Each polling cycle updates the inventory and removes entities that are genuinely gone.
* :fa-folder: **Category-based monitoring** – :Nodinite: groups databases and containers in [Categories][] for clear ownership and filtering.
* :fa-users-class: **Role-based visibility** – Share access with [Users][] through one or more [Role][Roles]-based [Monitor Views][].
* :fa-chart-simple: **Configuration facts** – The resource shows RU/s, autoscale max, partition key, and TTL details.

## :fa-traffic-light-go: State Evaluation for Cosmos DB

:Nodinite: 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|:fa-circle-info: [Details][Azure Agent - Managing Cosmos DB - Details]<br/>:fa-file-lines: [Approved Queries][Azure Agent - Managing Cosmos DB - Query]<br/>:fa-gauge: [Throughput][Azure Agent - Managing Cosmos DB - Throughput]<br/>:fa-key: [Keys][Azure Agent - Managing Cosmos DB - Keys]<br/>:fa-plus: [Create or Delete Containers][Azure Agent - Managing Cosmos DB - Create and Delete Containers]<br/>:fa-sign-out: [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|:fa-circle-info: [Details][Azure Agent - Managing Cosmos DB - Details]<br/>:fa-key: [Keys][Azure Agent - Managing Cosmos DB - Keys]|

The monitoring model is intentionally simple:

* :fa-lightbulb-on: **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.
* :fa-rotate-right: **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`.

### :fa-database: 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, :Nodinite: marks the resource **Unavailable**, and the user sees the connection or access problem directly in the monitor view.

### :fa-boxes: 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.

## :fa-history: 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.

## :fa-question: Frequently Asked Questions

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

### :fa-square-plus: What is monitored?

:Nodinite: 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.

### :fa-square-plus: 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 :Nodinite:. Use the [Keys][Azure Agent - Managing Cosmos DB - Keys] Remote Action to check the masked connection details.

## :fa-hand-point-right: Next Steps

* :fa-wrench: [Manage Cosmos DB][Azure Agent - Managing Cosmos DB]  
* :fa-heart-pulse: [Monitor the data with Monitoring Scripts][Cosmos DB Monitoring Scripts]  
* :fa-edit: [Configure the Azure Agent][Configuration]  
* :fa-cloud: [Azure Logging and Monitoring Overview][]  

## :fa-link-horizontal: Related Topics

* :fa-cloud: [Azure Monitoring Agent][Azure Agent]  
* :fa-clipboard-check: [Prerequisites][]  
* :fa-database: [Azure SQL Database][]  
* :fa-hard-drive: [Monitoring Azure Storage][Azure Agent - Monitoring Storage]  
* :fa-lightbulb-on: [Resources][]  
* :fa-folder: [Categories][]  
* :fa-box-open: [Applications][]  
* :fa-bell: [Alarm Plugins][]  
* :fa-question: [Troubleshooting][]  

[Add or manage Monitor View]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/Add%20or%20manage%20Monitor%20View.md
[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[Applications]:{ndr}/Administration/2.%20Monitor%20Management/5.%20Applications/Features/What%20is%20an%20Application.md
[Azure Agent]:{ndr}/Logging%20and%20Monitoring/Azure/Overview.md
[Azure Agent - Managing Cosmos DB]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Managing%20Cosmos%20DB.md
[Azure Agent - Managing Cosmos DB - Create and Delete Containers]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Managing%20Cosmos%20DB.md#fa-plus-create-and-delete-containers
[Azure Agent - Managing Cosmos DB - Details]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Managing%20Cosmos%20DB.md#fa-magnifying-glass-details-and-document-browsing
[Azure Agent - Managing Cosmos DB - Keys]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Managing%20Cosmos%20DB.md#fa-key-keys-and-secret-handling
[Azure Agent - Managing Cosmos DB - Post]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Managing%20Cosmos%20DB.md#fa-boxes-cosmos-db---container
[Azure Agent - Managing Cosmos DB - Query]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Managing%20Cosmos%20DB.md#fa-file-lines-approved-queries
[Azure Agent - Managing Cosmos DB - Throughput]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Managing%20Cosmos%20DB.md#fa-arrow-up-right-from-square-throughput-and-cost-guardrails
[Azure Agent - Monitoring Event Hub]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Event%20Hub/Monitoring%20Event%20Hub.md
[Azure Agent - Monitoring Storage]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Storage/Monitoring%20Azure%20Storage.md
[Azure Logging and Monitoring Overview]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Overview.md
[Azure SQL Database]:{ndr}/Logging%20and%20Monitoring/Database/Features/Azure%20SQL%20Database/Overview.md
[AzureApplicationsAccess - Least Privileges]:{ndr}/Install%20and%20Update/Troubleshooting/Azure/Azure%20Application%20Access%20-%20Least%20Privileges.md#permission-table
[Categories]:{ndr}/Administration/2.%20Monitor%20Management/4.%20Categories/Features/What%20is%20a%20Category.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Azure/Getting%20started/3.%20Configuration.md
[Cosmos DB Monitoring Scripts]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Cosmos%20DB/Cosmos%20DB%20Monitoring%20Scripts.md
[Expected State]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/Expected%20State.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Prerequisites]:{ndr}/Logging%20and%20Monitoring/Azure/Getting%20started/1.%20Prerequisites.md
[Prerequisites - Azure rights]:{ndr}/Logging%20and%20Monitoring/Azure/Getting%20started/1.%20Prerequisites.md#fa-cloud-what-azure-user-rights-and-services-does-the-azure-agent-require
[Prerequisites - Firewall]:{ndr}/Logging%20and%20Monitoring/Azure/Getting%20started/1.%20Prerequisites.md#fa-shield-check-what-firewall-settings-are-required-for-the-azure-agent
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Resource State History]:{ndr}/Getting%20Started/3.%20Monitor/Resource%20State%20History.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Azure/Troubleshooting/Overview.md
[Users]:{ndr}/Administration/3.%20Access%20Management/2.%20Users/Features/What%20is%20a%20User.md