webdevops/azure-resourcemanager-exporter

By webdevops

Updated 3 days ago

Prometheus exporter for Azure ResourceManager (quotas, API ratelimit, ResourceGroups, Public IPs...)

Image
Networking
Integration & delivery
Monitoring & observability
0

100K+

webdevops/azure-resourcemanager-exporter repository overview

Azure ResourceManager Exporter

license Docker Docker Build Status

Prometheus exporter for Azure Resources and informations.

Configuration

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

Environment variableDefaultValueDescription
AZURE_SUBSCRIPTION_IDemptyAzure Subscription IDs (empty for auto lookup)
AZURE_LOCATIONwesteurope, northeuropeAzure location for usage statitics
SCRAPE_TIME5mDefault scrape time (time.Duration) between Azure API collections
SCRAPE_TIME_GENERAL-> SCRAPE_TIMEScrape time for General metrics
SCRAPE_TIME_RESOURCE-> SCRAPE_TIMEScrape time for Resource metrics
SCRAPE_TIME_STORAGE-> SCRAPE_TIMEScrape time for Storage metrics
SCRAPE_TIME_QUOTA-> SCRAPE_TIMEScrape time for Quota metrics
SCRAPE_TIME_CONTAINERREGISTRY-> SCRAPE_TIMEScrape time for ContainerRegistry metrics
SCRAPE_TIME_CONTAINERINSTANCE-> SCRAPE_TIMEScrape time for ContainerInstance metrics
SCRAPE_TIME_EVENTHUB30m `Scrape time for Eventhub metrics
SCRAPE_TIME_SECURITY-> SCRAPE_TIMEScrape time for Security metrics
SCRAPE_TIME_HEALTH-> SCRAPE_TIMEScrape time for Health metrics
SCRAPE_TIME_IAM-> SCRAPE_TIMEScrape time for AzurAD IAM (roledefinitions, rolebindings, principals) metrics
SCRAPE_TIME_GRAPH-> SCRAPE_TIMEScrape time for AzurAD Graph metrics
SERVER_BIND:8080IP/Port binding
AZURE_RESOURCE_GROUP_TAGownerTags which should be included (methods available eg. owner:lower will transform content lowercase, methods: lower, upper, title)
AZURE_RESOURCE_TAGownerTags which should be included (methods available eg. owner:lower will transform content lowercase, methods: lower, upper, title)
PORTSCAN0Enables portscanner for public IPs (experimental)
PORTSCAN_RANGE1-65535Port range to scan (single port or range, mutliple ranges possible -> space as seperator)
PORTSCAN_TIME3hTime (time.Duration) between portscanner runs
PORTSCAN_PARALLEL2Parallel IPs which are scanned at the same time
PORTSCAN_THREADS1000Number of threads per IP (parallel scanned ports)
PORTSCAN_TIMEOUT5Timeout (seconds) for each port
GRAPH_APPLICATION_FILTERemptyAzureAD graph application filter, eg. startswith(displayName,'foo')

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

Metrics

MetricCollectorDescription
azurerm_statsExporterGeneral exporter stats
azurerm_subscription_infoGeneralAzure Subscription details (ID, name, ...)
azurerm_resourcegroup_infoGeneralAzure ResourceGroup details (subscriptionID, name, various tags ...)
azurerm_ratelimitGeneralAzure API ratelimit (left calls)
azurerm_quotaQuotaAzure RM quota details (readable name, scope, ...)
azurerm_quota_currentQuotaAzure RM quota current (current value)
azurerm_quota_limitQuotaAzure RM quota limit (maximum limited value)
azurerm_vm_infoComputingAzure VM informations
azurerm_vm_osComputingAzure VM base image informations
azurerm_publicip_infoComputingAzure Public IPs details (subscriptionID, resourceGroup, ipAdress, ipVersion, ...)
azurerm_publicip_portscan_statusComputingStatus of scanned ports (finished scan, elapsed time, updated timestamp)
azurerm_publicip_portscan_portPortscanList of opend ports per IP
azurerm_containerregistry_infoContainerRegistryList of Container registries
azurerm_containerregistry_quota_currentContainerRegistryQuota usage of Container registries
azurerm_containerregistry_quota_limitContainerRegistryQuota limit of Container registries
azurerm_containerinstance_infoContainerInstanceList of Container instances
azurerm_containerinstance_containerContainerInstanceList of containers of container instances (container groups)
azurerm_containerinstance_container_resourceContainerInstanceContainer resource (request / limit) per container
azurerm_containerinstance_container_portContainerInstanceContainer ports per container
azurerm_eventhub_namespace_infoEventhubEventhub namespace info
azurerm_eventhub_namespace_statusEventhubEventhub namespace status (maximumThroughputUnits)
azurerm_eventhub_namespace_eventhub_infoEventhubEventhub namespace eventhub info
azurerm_eventhub_namespace_eventhub_statusEventhubEventhub namespace eventhub status (partitionCount, messageRetentionInDays)
azurerm_securitycenter_complianceSecurityAzure SecurityCenter compliance status
azurerm_advisor_recommendationSecurityAzure Adisor recommendations (eg. security findings)
azurerm_resource_infoResourceAzure Resource informations
azurerm_resource_healthHealthAzure Resource health informations
azurerm_storageaccount_infoStorageAzure StorageAccount informations
azurerm_manageddisk_infoStorageAzure ManagedDisk informations
azurerm_manageddisk_sizeStorageAzure ManagedDisk size
azurerm_manageddisk_statusStorageAzure ManagedDisk stats informations
azurerm_iam_roleassignment_infoIAMAzure IAM RoleAssignment information
azurerm_iam_roledefinition_infoIAMAzure IAM RoleDefinition information
azurerm_iam_principal_infoIAMAzure IAM Principal informations
azurerm_graph_app_infoGraphAzureAD graph application informations
azurerm_graph_app_credentialGraphAzureAD graph application credentials (create,expiry) informations

Tag summary

Content type

Image

Digest

sha256:611fa0746

Size

150.6 MB

Last updated

3 days ago

docker pull webdevops/azure-resourcemanager-exporter:main-azcli