For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/ddsql_reference/data_directory/dd/dd.database_instances.dataset.md. A documentation index is available at /llms.txt.

Database Instances

The Database Instances table provides metadata about monitored database instances across DBMS types supported by Database Monitoring (e.g., PostgreSQL, MySQL, SQL Server, MongoDB, Oracle, ClickHouse). Each row represents an instance and includes connection details, version, tags, and settings. Use the dbms field to filter by engine (lowercase identifiers such as postgres, mysql, sqlserver, mongo, oracle, clickhouse). Logical database datasets expose database_instance_key to join to this table’s _key.

dd.database_instances

Fields

TitleIDTypeData TypeDescription
Key_keycorestringUnique identifier for the database instance record (e.g., 1f2c34a5b06d7e6c5ab12f8901abcdef).
NamenamecorestringName of the database instance (e.g., storefront-db-0.storefront-db.postgres-storefront.svc.internal.cluster.local).
Display Namedisplay_namecorestringHuman-readable display name for the instance (e.g., storefront-db-0.storefront-db.postgres-storefront.svc.internal.cluster.local).
DBMSdbmscorestringDatabase management system identifier in lowercase (e.g., postgres).
Connection Hostconnection_hostcorestringHost used to connect to the database instance (e.g., 123.45.67.89).
HostnamehostnamecorestringHostname associated with the instance (e.g., orders-api-db-0.orders-api-db.postgres-orders.svc.internal.cluster.local).
Database Versiondatabase_versioncorestringReported database engine version (e.g., v11.22.0).
Integration Versionintegration_versioncorestringVersion of the Datadog integration collecting this instance (e.g., v18.3.0).
DBMdbmcoreboolWhether Database Monitoring is enabled for this instance.
TagstagscorejsonTags associated with the instance as a JSON array of strings; shape may vary (e.g., ["app:postgres","env:staging","dbms:postgres"]).
Cloud Metadatacloud_metadatacorejsonCloud provider metadata for the instance as a JSON object (e.g., {"aws":{"instance_id":"i-0abc123..."}}). May be empty when the instance is not in a recognized cloud environment.
SettingssettingscorejsonInstance-level settings as a JSON object (e.g., {"instance_endpoint":"postgres-instance.example.rds.amazonaws.com"}). May be empty or null when unused.