Skip to content

tomw1994991/AzureExporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure-Exporter

  • Simple implementation of a prometheus exporter for Azure Monitor metrics
  • As of 2022/10/22, metrics can only be retrieved on a per-resource basis. The application will find all resources matching the configuration and return configured metrics.
  • ResourceDiscoverer component finds resources. MetricsScraper component talks to Azure monitor.
  • Actuator prometheus endpoint exposes metrics for prometheus at localhost:8090/actuator/prometheus by default
  • Docs for writing exporters: https://prometheus.io/docs/instrumenting/writing_exporters/

Configuration

Example Metrics

metricName in application.yml exposed metric
Microsoft.Storage/storageAccounts Availability azure_storageaccounts_availability_bytes
microsoft.category/resourceType metricName azure_resourcetype_metricname_units
microsoft.category/CASEINSENSITIVE special-chars azure_caseinsensitive_special_chars_units

Special Metrics

azure_monitor_metric_api_calls_total (counter) records the number of calls to the azure metrics api for cost tracking.

Docker

About

Export azure monitor metrics for prometheus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages