webdevops/azure-keyvault-exporter

By webdevops

Updated 21 days ago

Prometheus exporter for Azure Keyvault informations

Image
Monitoring & Observability
Security

50K+

Azure Keyvault Exporter

licenseDockerDocker Build Status

Prometheus exporter for Azure Keyvaults which exports general informations and dates (created, updated, notBefore, expiry) for secrets, keys and certificates.

Configuration

Normally no configuration is needed but can be customized using environment variables.

Usage:
  azure-keyvault-exporter [OPTIONS]

Application Options:
      --debug                debug mode [$DEBUG]
  -v, --verbose              verbose mode [$VERBOSE]
      --log.json             Switch log output to json format [$LOG_JSON]
      --azure.environment=   Azure environment name (default: AZUREPUBLICCLOUD) [$AZURE_ENVIRONMENT]
      --azure.subscription=  Azure subscription ID [$AZURE_SUBSCRIPTION_ID]
      --azure.location=      Azure locations (default: westeurope, northeurope) [$AZURE_LOCATION]
      --azure.resourcegroup= Azure ResourceGroup [$AZURE_RESOURCEGROUP]
      --azure.resource-tag=  Azure Resource tags (default: owner) [$AZURE_RESOURCE_TAG]
      --scrape.time=         Default scrape time (time.duration) (default: 5m) [$SCRAPE_TIME]
      --bind=                Server address (default: :8080) [$SERVER_BIND]

Help Options:
  -h, --help                 Show this help message

for Azure API authentication (using ENV vars) see https://github.com/Azure/azure-sdk-for-go#authentication

Metrics

MetricDescription
azurerm_keyvault_infoAzure KeyVault informations
azurerm_keyvault_statusAzure KeyVault status informations (eg. if accessable from exporter)
azurerm_keyvault_key_infoGeneral inforamtions about keys
azurerm_keyvault_key_statusStatus informations (notBefore & expiry date)
azurerm_keyvault_secret_infoGeneral inforamtions about secrets
azurerm_keyvault_secret_statusStatus informations (notBefore & expiry date)
azurerm_keyvault_certificate_infoGeneral inforamtions about certificate
azurerm_keyvault_certificate_statusStatus informations (notBefore & expiry date)

Docker Pull Command

docker pull webdevops/azure-keyvault-exporter