dodevops / azure-app-exporter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:Apache License 2.0


Languages

Language:Python 79.6%Language:Smarty 15.6%Language:Dockerfile 3.8%Language:Shell 1.0%