---
updatedAt: 2025-05-11T13:14:13.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Cosmos DB

# Cosmos DB Right Sizing

<Tabs>
  <Tab title="Summary">
    Based on throughput (number of connections and read and write requests) when resource is over provisioned or under provisioned, we recommend adjusting its type.
  </Tab>

  <Tab title="Logic">
    Recommendation is being triggere basing on the folloiwng conditions:

    1. The account has more than minimal required throughput (400 RU/s per database).
    2. The maximum consumption over the last week(hardcoded) is below 90%.
    3. The account has at least one active database.

    Different metrics are used:

    * ProvisionedThroughput, actual throughput and max\_consumption (Uses Azure Monitor API to get the metrics).
  </Tab>

  <Tab title="  Preferences">
    N/A.
  </Tab>

  <Tab title="Logic source">
    Umbrella.
  </Tab>
</Tabs>

# Cosmos DB Idle

<Tabs>
  <Tab title="Summary">
    Identifying the resource as Idle if the number of requests is no more than 1 within the past 14 days.
  </Tab>

  <Tab title="Logic">
    Recommendation is being triggere basing on the folloiwng conditions:

    1. The database is in a 'Succeeded' state.
    2. The metrics (used list presented below) show minimal or no activity (max count ≤ 1).
    3. The potential savings exceed the minimum potential savings > $5 as defualt.
    4. The size properties can be successfully retrieved.

    Different metrics are used based on database type:

    * MongoDB: MongoRequests
    * Gremlin: GremlinGraphDelete, GremlinGraphUpdate, GremlinGraphCreate, GremlinGraphThroughputUpdate
    * Cassandra: CassandraRequests
  </Tab>

  <Tab title="  Preferences">
    1. Days To Check, default 14 days.
  </Tab>

  <Tab title="Logic source">
    Umbrella.
  </Tab>
</Tabs>

# Cosmos DB Reserved Capacity

<Tabs>
  <Tab title="Summary">
    Analyzing the usage on past 30 days and recommending to purchase reserved capacity if applicable, to optimize costs.  The recommendation is being retrieved from the Azure advisor.
  </Tab>

  <Tab title="Logic">
    Recommendation is being triggere basing on the folloiwng conditions:

    * 30-day period for usage analysis.

    * Default recommendation: 1-year terms.

    * Considers 3-year terms as alternatives.

    Cost Calculation:

    * Gets the current Cosmos DB costs.
    * Filters costs by region and SKU display name (meter).
  </Tab>

  <Tab title="  Preferences">
    N/A.
  </Tab>

  <Tab title="Logic source">
    Native + Umbrella validation.
  </Tab>
</Tabs>