Skip to content

feat: add reservation state and expiry time metrics - #164

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

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

Conversation

@cjedro

@cjedro cjedro commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

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

cjedro commented Mar 17, 2026

Copy link
Copy Markdown
Contributor Author

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

@cjedro

cjedro commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@mblaschke did you already have time to look at my changes?

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