Azure Vault
Securely load database credentials from Azure Vault.
Each database in the config file may be configured to use Azure Vault. To load the database username and/or password from Azure Vault, set the vault.azure property to contain the Azure Vault ID, and secret names for the database username/password:
databases:
mydb:
vault:
azure:
id: <VAULT ID>
usernameSecret: <Secret containing DB username>
passwordSecret: <Secret containing DB password>
Authentication
If you are running the exporter outside Azure, we recommend using application service principal.
If you are running the exporter inside Azure, we recommend using a managed identity.
You should set the following additional environment variables to allow the exporter to authenticate to Azure:
AZURE_TENANT_IDshould be set to your tenant IDAZURE_CLIENT_IDshould be set to the client ID to authenticate to AzureAZURE_CLIENT_SECRETshould be set to the client secret to authenticate to Azure