Skip to content

feat: add reservation state and expiry time metrics#164

Open
cjedro wants to merge 2 commits intowebdevops:mainfrom
cjedro:add-more-reservation-metrics
Open

feat: add reservation state and expiry time metrics#164
cjedro wants to merge 2 commits intowebdevops:mainfrom
cjedro:add-more-reservation-metrics

Conversation

@cjedro
Copy link
Copy Markdown
Contributor

@cjedro cjedro commented Feb 12, 2026

I was planning to create Alerts some time before Reservations expire. Seems like the current approach is more focused about usage. I've added two more metrics which reflect the state and the expiry time.

I've tested this already with ghcr.io/cloudeteer/azure-resourcemanager-exporter:cloudeteer-reservations

Please let me know what you think about this approach. As i dont need to collect based off billingAccounts the collector only collects the new metrics when no scopes are defined.

@mblaschke
Copy link
Copy Markdown
Member

why not just add ProvisioningState as label? might make it more easy to use instead of a "myserious number"

@sonarqubecloud
Copy link
Copy Markdown

@cjedro
Copy link
Copy Markdown
Contributor Author

cjedro commented Mar 17, 2026

why not just add ProvisioningState as label? might make it more easy to use instead of a "myserious number"

i've migrated from one series that has the "myserious number" to multiple metrics that has the state as label and is one if its the current state.

I wanted to keep expiry metric and state metric seperate but if you like that more i'm happy to change it again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants