mkoertgen / azure-app-exporter

Exposing Prometheus Metrics for Azure App Registration useful for alerting on expiring Service Principal Credentials.
Apache License 2.0
4 stars 4 forks source link

Metrics for removed app credentials aren't removed #11

Closed dploeger closed 4 months ago

dploeger commented 5 months ago

Describe the bug When a credential is removed from an app, its metrics stay in the exporter.

To Reproduce Steps to reproduce the behavior: 1: Create an app with a secret 2: Make it have metrics in the azure app exporter 3: Delete the secret => The metrics for the secret stay in the app exporter

Expected behavior The metrics will be removed as well.