turbot/azure_insights

Query: cosmosdb_account_database_details

Usage

powerpipe query azure_insights.query.cosmosdb_account_database_details

SQL

select
d.name as "Name",
d.account_name as "Account Name",
d.throughput_settings ->> 'Throughput' as "Throughput - (RU/s)",
a.kind as "Database Server",
d.id as "ID",
lower(d.id) as lower_id
from
azure_cosmosdb_mongo_database as d
join azure_cosmosdb_account as a on d.account_name = a.name
where
lower(a.id) = $1
and a.subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: