Azure database_account metricsetedit

This is the database_account metricset of the module azure.

This metricset allows users to retrieve relevant metrics from specified database accounts and comes with a predefined dashboard:

metricbeat azure database account overview

Metricset-specific configuration notesedit

Resources will be retrieved at each fetch call (period interval), this means a number of Azure REST calls will be executed each time. This will be helpful if the azure users will be adding/removing resources that could match the configuration options so they will not added/removed to the list. To reduce on the number of API calls we are executing to retrieve the resources each time, users can configure this setting and make sure the list or resources will not be refreshed as often. This is also beneficial for performance and rate/ cost reasons (
This will contain all options for identifying resources and configuring the desired metrics

Config options to identify resourcesedit

([]string) The fully qualified ID’s of the resource, including the resource name and resource type. Has the format /subscriptions/{guid}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}. Should return a list of resources.
([]string) This option will select all database accounts inside the resource group.

If none of the options are entered then all database accounts inside the subscription are taken in account. For each metric the primary aggregation assigned will be retrieved. A default non configurable timegrain of 5 min is set so users are advised to configure an interval of 300s or a multiply of it.

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.


For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

    "@timestamp" : "2020-02-25T08:53:00.000Z",
    "cloud" : {
        "provider" : "azure",
        "region" : "westeurope"
    "event" : {
        "module" : "azure",
        "duration" : 4877063600,
        "dataset" : "azure.database_account"
    "metricset" : {
        "name" : "database_account",
        "period" : 300000
    "azure" : {
        "timegrain" : "PT5M",
        "dimensions" : {
            "database_name" : "testdb"
        "database_account" : {
            "provisioned_throughput" : {
                "max" : 400
        "resource" : {
            "group" : "obs-test",
            "tags" : {
                "defaultExperience" : "Core (SQL)"
            "name" : "obsaccount",
            "type" : "Microsoft.DocumentDb/databaseAccounts"
        "subscription_id" : "123456-qwer-1234-5678-12345678",
        "namespace" : "Microsoft.DocumentDb/databaseAccounts"
    "service" : {
        "type" : "azure"