# Module: azure
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.x/metricbeat-module-azure.html

- module: azure
  metricsets:
  - monitor
  enabled: true
  period: 300s
  client_id: '${AZURE_CLIENT_ID:""}'
  client_secret: '${AZURE_CLIENT_SECRET:""}'
  tenant_id: '${AZURE_TENANT_ID:""}'
  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
  refresh_list_interval: 600s
  resources:
#  - resource_query: "resourceType eq 'Microsoft.DocumentDb/databaseAccounts'"
#    metrics:
#    - name: ["DataUsage", "DocumentCount", "DocumentQuota"]
#      namespace: "Microsoft.DocumentDb/databaseAccounts"

#- module: azure
#  metricsets:
#  - compute_vm
#  enabled: true
#  period: 300s
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#  - compute_vm_scaleset
#  enabled: true
#  period: 300s
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#  - storage
#  enabled: true
#  period: 300s
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#  - container_instance
#  enabled: true
#  period: 300s
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#  - container_service
#  enabled: true
#  period: 300s
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#  - container_registry
#  enabled: true
#  period: 300s
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#  - database_account
#  enabled: true
#  period: 300s
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#  - billing
#  enabled: true
#  period: 24h
#  client_id: '${AZURE_CLIENT_ID:""}'
#  client_secret: '${AZURE_CLIENT_SECRET:""}'
#  tenant_id: '${AZURE_TENANT_ID:""}'
#  subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
#  refresh_list_interval: 600s

#- module: azure
#  metricsets:
#    - app_insights
#  enabled: true
#  period: 300s
#  application_id: ''
#  api_key: ''
#  metrics:
#   - id: ["requests/count", "requests/duration"]

#- module: azure
#  metricsets:
#    - app_state
#  enabled: true
#  period: 300s
#  application_id: ''
#  api_key: ''
