Skip to content

Exposing Prometheus Metrics for Azure App Registration useful for alerting on expiring Service Principal Credentials.

License

Notifications You must be signed in to change notification settings

dodevops/azure-app-exporter

 
 

Repository files navigation

azure-app-exporter Artifact Hub

azure-app-exporter

Exposing Prometheus Metrics for Azure App Registration useful for alerting on expiring Service Principal Credentials.

Example Grafana Dashboard

See Documentation for more information.

Contribute on the Project page

Quick Start

Install using Helm or Docker and create a Service Principal to use with Azure.

The service authenticates against Azure using Environmental Credentials, i.e.

  • AZURE_TENANT_ID: ID of the service principal's tenant. Also called its 'directory' ID.
  • AZURE_CLIENT_ID: the application ID
  • AZURE_CLIENT_SECRET: one of the service principal's client secrets

The Service Principal should have at least API permission Application.Read.All (Graph & Active Directory)

Filtering for tags

While it is not officially possible to tag app registrations, you can still open the manifest json in the Azure portal, manually change the "tags" property and save it.

Use the FILTER_TAGS environment variable with a comma separated list of tags to only retrive the app registrations that have one of the given tags attached.

About

Exposing Prometheus Metrics for Azure App Registration useful for alerting on expiring Service Principal Credentials.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 79.6%
  • Smarty 15.6%
  • Dockerfile 3.8%
  • Shell 1.0%