Databases & warehouses
Cosmos DB analytics: ask Azure Cosmos DB about your containers and RU use
Azure Cosmos DB is Microsoft’s globally distributed NoSQL database service. Application teams store JSON items in containers partitioned by a partition key, and pay for throughput in request units per second. It supports several APIs (NoSQL, MongoDB, Apache Cassandra, Gremlin and Table) and a separate Cosmos DB for PostgreSQL, which Microsoft plans to retire on March 31, 2029. It commonly holds user profiles, shopping carts, orders, IoT state and session data for Azure applications.
Cosmos DB
Available now: Nexatron answers Cosmos DB questions with user-level access that inherits your existing Cosmos DB permissions.
Updated
Can Claude, ChatGPT or Copilot access Cosmos DB data?
Yes. To connect Claude, ChatGPT or Copilot to Cosmos DB, add Nexatron from Claude’s connector directory, or by its MCP server URL in ChatGPT and Copilot. Then connect it in Nexatron. Users sign in with their own Cosmos DB account (or your SSO), and Nexatron inherits their existing permissions.
What Cosmos DB data a question reads
- Accounts and databases
- The account sets consistency level, regions and API; databases group containers and can share provisioned throughput.
- Containers and partition keys
- Collections of items with a partition key such as /customerId or /tenantId, indexing policy, TTL and throughput (manual or autoscale RU/s).
- Items
- JSON documents such as orders, carts, profiles or device states, each with id, partition key value, _ts timestamp and the application’s own fields.
- Change feed
- The ordered log of inserts and updates per container, used to project data into other stores and to count recent changes.
- Request unit and throttling metrics
- Total Request Units, Normalized RU Consumption and status code 429 counts from Azure Monitor, by container and partition key range.
- Analytical store and Fabric mirroring
- A column-store copy of container data for analytics, through mirroring into Microsoft Fabric OneLake, or the older Azure Synapse Link, which Microsoft no longer supports for new projects.
Cosmos DB questions people ask
- How many carts were created per hour yesterday, and what share converted to an order?
- Which tenants have the most items in the orders container, and how fast did each grow this month?
- Which containers hit 100 percent normalized RU consumption during last week’s peak?
- How many requests returned 429 by container over the last 24 hours?
- Which partition key values are hot partitions in the telemetry container?
- What was the average order value for orders created through the mobile app this quarter?
Who asks Cosmos DB questions
- Application product owners
- Counts and trends in the items their app writes, such as carts, orders or sign-ups, without a separate export.
- Cloud database engineers
- RU consumption, throttling, hot partitions and whether autoscale maximums fit actual load.
How Nexatron connects to Cosmos DB
- API and sign-in
- The Azure Cosmos DB data plane through the official SDKs or REST API, authenticated with Microsoft Entra ID OAuth tokens and Cosmos DB role-based access control (such as the built-in Data Reader role). Account keys and resource tokens also exist. Metrics come from Azure Monitor.
- User-level access
- Users sign in with their own Cosmos DB account (or your SSO), and Nexatron inherits their existing permissions. Users only see data they are already authorized to see.
- Read-only
- Questions only read Cosmos DB; asking a question never changes Cosmos DB data.
- Setup
- An administrator enables Cosmos DB in Nexatron. Users link their own Cosmos DB account, or sign in through your SSO, the first time they ask. Queries run in Cosmos DB, with no warehouse to load.
Cosmos DB in Claude’s connector directory
Nexatron is listed in Claude’s MCP connector directory, so a Claude user can add it without a custom server URL. Its hosted MCP server answers Cosmos DB questions for Claude, ChatGPT and Microsoft Copilot with user-level access, and the same governed answer as the Nexatron app. It is Nexatron’s own server, not one published by the vendor.
- Connect Cosmos DB to your Nexatron workspace.
- In Claude, add Nexatron from Claude’s connector directory. In ChatGPT or Copilot, add a custom MCP connector with Nexatron’s server URL.
- Sign in with your own Nexatron identity (OAuth 2.1), then ask your Cosmos DB questions.
Server URL for a custom connector: https://api.nexatron.io/api/v1/mcp
Cosmos DB questions and answers
- What is a request unit in Cosmos DB?
- A request unit is Cosmos DB’s measure of the CPU, memory and IO an operation uses. A point read of a 1 KB item costs about one RU; queries cost more depending on how many items and partitions they touch. Exceeding provisioned RU/s returns HTTP 429.
- Can I run analytics directly on Cosmos DB?
- Small, partition-scoped aggregations work well with the NoSQL query language. For large scans, Microsoft recommends mirroring into Microsoft Fabric, so analytical queries do not consume transactional RUs.
- Does Cosmos DB support Entra ID instead of keys?
- Yes. Data plane RBAC lets Entra ID users, groups and managed identities read or write data with role assignments, and account keys can be disabled for data access.
- Cosmos DB vs DynamoDB?
- Both are managed NoSQL services billed on throughput. Cosmos DB offers several APIs, tunable consistency levels and multi-region writes, while DynamoDB is AWS-native with tables, partition and sort keys and capacity units. The questions people ask, about items, hot keys and throttling, look alike.
Try Nexatron with your Cosmos DB
Tell us the Cosmos DB questions you want answered and who asks them, and we plan the demo around them. Do not include credentials or confidential records.
Cosmos DB is a trademark of its owner.