Lackluster azure.resource.type data in billing metricset

Hi,

we've introduced azure billing metricset into our metricbeat (8.15.2 version) configuration, and I've noticed that azure.resource.type is a little lackluster.

Microsoft.Compute

microsoft.compute

Microsoft.Storage

microsoft.network

Microsoft.EventHub

Virtual Network

Microsoft.RecoveryServices

Microsoft.Cache

Microsoft.KeyVault

MICROSOFT.LOGIC

Other

Lackluster in a sense that it's missing the actual resource type this data came from, i.e. Microsoft.Compute/virtualMachines or Microsoft.Compute/disks. So the actual part after the /.

    "azure": {
      "subscription_id": "",
      "subscription_name": "",
      "resource": {
        "type": "Microsoft.Compute",
        "group": "",
        "tags": {
          ...
        },
        "name": ""
      },
      "billing": {
        ...
      }
    }

On a different machine, where we're using the monitor metricset - granted those resources are defined, we see the actual resource type from which the data came from.

    "azure": {
      "subscription_id": "",
      "timegrain": "PT1M",
      "resource": {
        "name": "",
        "id": "",
        "type": "Microsoft.Cache/Redis",
        "tags": {
          "environment": ""
        },
        "group": ""
      },
      "namespace": "Microsoft.Cache/redis",
      "metrics": {
       ...
      }
    }

Billing azure.yml configuration:

- module: azure
  metricsets:
  - billing
  enabled: true
  period: 24h
  client_id: ''
  client_secret: ''
  tenant_id: ''
  subscription_id: ''
  refresh_list_interval: 600s

Monitor azure.yml configuration:

- module: azure
  metricsets:
  - monitor
  enabled: true
  period: 300s
  client_id: 
  client_secret: 
  tenant_id: 
  subscription_id: 
  refresh_list_interval: 10s
  resources:
  - resource_group: 
    resource_type: "Microsoft.Compute/virtualMachines"
    metrics:
    - name: "CPU Credits Remaining"
      namespace: "Microsoft.Compute/virtualMachines"
  - resource_group:
    resource_type: "Microsoft.Cache/redis"
    metrics:
    - name: "*"
      namespace: "Microsoft.Cache/redis"

I couldn't find anywhere online if this is expected output. I however do understand that billing is in a beta phase, so if this is a bug, it seems fair to report it as such.

BR,
janb