Skip to content

Azure Cosmos DB

Availability BadgeResource Discovery Support Badge

You can declare to scrape Cosmos Db via the CosmosDb resource type.

When using declared resources, the following fields need to be provided:

  • dbName- The name of the Cosmos Db to be scraped

All supported metrics are documented in the official Azure Monitor documentation.

Example

Here is an example configuration:

name: azure_cosmos_db_total_requests
description: "Demo cosmos query"
resourceType: CosmosDb
azureMetricConfiguration:
  metricName: TotalRequests
  aggregation:
    type: Count
resources: # Optional, required when no resource discovery is configured
- dbName: cosmos-database-1
- dbName: cosmos-database-2
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://docs.promitor.io/latest/how-it-works#using-resource-discovery)
- name: cosmos-db-landscape