first of all I want to say thank you for this cool exporter!
I found one little issue that bugs me and it is open for discussion if this is a bug or a feature request.The pricing metrics (hcloud_server_price_monthly and hcloud_server_price_hourly) contain only the base price of the server and do not include the additional 20% if backups are enabled.
The server endpoint includes the server type, if backups are enabled and the base price.
The pricing endpoint includes the percentage that is added to the price when backups are enabled.
I have several ideas what we could do with this information:
We could add a hcloud_backup_price metric. Currently this would always be 0.2 or 20.0 but maybe Hetzner changes the percentage in the future.
We could add a hcloud_server_backup metric that is 1 if the backup is enabled and 0 otherwise. Currently the only way to figure this out is to check hcloud_image_active{type="backup"} and this feels more like a workaround to me. By adding the hcloud_server_backup it would be possible to calculate the reals costs based on hcloud_server_backup and hcloud_server_price_monthly (e.g. in Grafana).
We could change both existing pricing metrics to include the backup percentage. Or we could add additional metrics to avoid breaking changes.
Based on the the information from the API we could add a metric that provides the costs that a server caused in the current month until now.
What I personally want to know in my dashboards/alerts is the fourth point but the other three points are ways to achieve the same by calculating the real costs inside of Grafana or the alert rules.
I am still pretty new to the Prometheus world and I have no idea if my proposals make any sense in regards of "what an exporter should do"-best-practices. So I am happy about any kind of feedback 🙂 Thanks for taking the time to read my message and please let me know if anything is unclear.
The text was updated successfully, but these errors were encountered:
Hi,
first of all I want to say thank you for this cool exporter!
I found one little issue that bugs me and it is open for discussion if this is a bug or a feature request.The pricing metrics (hcloud_server_price_monthly and hcloud_server_price_hourly) contain only the base price of the server and do not include the additional 20% if backups are enabled.
I have several ideas what we could do with this information:
hcloud_backup_price
metric. Currently this would always be 0.2 or 20.0 but maybe Hetzner changes the percentage in the future.hcloud_server_backup
metric that is 1 if the backup is enabled and 0 otherwise. Currently the only way to figure this out is to checkhcloud_image_active{type="backup"}
and this feels more like a workaround to me. By adding thehcloud_server_backup
it would be possible to calculate the reals costs based onhcloud_server_backup
andhcloud_server_price_monthly
(e.g. in Grafana).What I personally want to know in my dashboards/alerts is the fourth point but the other three points are ways to achieve the same by calculating the real costs inside of Grafana or the alert rules.
I am still pretty new to the Prometheus world and I have no idea if my proposals make any sense in regards of "what an exporter should do"-best-practices. So I am happy about any kind of feedback🙂 Thanks for taking the time to read my message and please let me know if anything is unclear.
The text was updated successfully, but these errors were encountered: