All Projects → jangraefen → hcloud-pricing-exporter

jangraefen / hcloud-pricing-exporter

Licence: MIT license
A prometheus exporter for the current pricing and costs of your HCloud account

Programming Languages

go
31211 projects - #10 most used programming language
Smarty
1635 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to hcloud-pricing-exporter

ui-driver-hetzner
Rancher UI driver for the Hetzner Cloud docker driver.
Stars: ✭ 238 (+1152.63%)
Mutual labels:  hetzner, hetzner-cloud, hcloud
hetzner.hcloud
A collection containing modules to manage resources on the Hetzner Cloud.
Stars: ✭ 58 (+205.26%)
Mutual labels:  hetzner, hetzner-cloud, hcloud
hcloud-ruby
Native ruby client for HetznerCloud
Stars: ✭ 29 (+52.63%)
Mutual labels:  hetzner, hetzner-cloud, hcloud
s3 exporter
Exports Prometheus metrics about S3 buckets and objects
Stars: ✭ 65 (+242.11%)
Mutual labels:  prometheus, prometheus-exporter, prometheus-metrics
hetzner exporter
Prometheus exporter for Hetzner
Stars: ✭ 16 (-15.79%)
Mutual labels:  prometheus, prometheus-exporter, hetzner
hcloud-rust
Unofficial Rust crate for accessing the Hetzner Cloud API
Stars: ✭ 22 (+15.79%)
Mutual labels:  hetzner, hetzner-cloud, hcloud
wireguard-setup
WireGuard and Unbound setup with Packer and Terraform.
Stars: ✭ 55 (+189.47%)
Mutual labels:  hetzner, hetzner-cloud, hcloud
freeradius exporter
FreeRADIUS Prometheus Exporter
Stars: ✭ 25 (+31.58%)
Mutual labels:  prometheus, prometheus-exporter, prometheus-metrics
magento2-prometheus-exporter
Simple Magento 2 Prometheus Exporter.
Stars: ✭ 40 (+110.53%)
Mutual labels:  prometheus, prometheus-exporter, prometheus-metrics
prometheus-hetzner-sd
Prometheus Service Discovery for Hetzner
Stars: ✭ 15 (-21.05%)
Mutual labels:  prometheus, prometheus-exporter, hetzner
bash-exporter
Simple & minimalistic Prometheus exporter for bash scripts, written in Go
Stars: ✭ 54 (+184.21%)
Mutual labels:  prometheus-exporter, prometheus-metrics
docker-volume-hetzner
Docker Volume Plugin for accessing Hetzner Cloud Volumes
Stars: ✭ 81 (+326.32%)
Mutual labels:  hetzner, hetzner-cloud
hue exporter
A Prometheus exporter for Philips Hue (written in Go)
Stars: ✭ 109 (+473.68%)
Mutual labels:  prometheus-exporter, prometheus-metrics
macropower-analytics-panel
It's like Google Analytics, but for Grafana dashboards!
Stars: ✭ 16 (-15.79%)
Mutual labels:  prometheus-exporter, prometheus-metrics
prom-bitbucket-exporter
Prometheus Exporter for Bitbucket
Stars: ✭ 47 (+147.37%)
Mutual labels:  prometheus-exporter, prometheus-metrics
kube-hetzner
Optimized and Maintenance-free Kubernetes on Hetzner Cloud in one command!
Stars: ✭ 937 (+4831.58%)
Mutual labels:  hetzner-cloud, hcloud
azure-devops-exporter
Prometheus exporter for Azure DevOps (VSTS) including agent pools, builds, releases, deployments, pullrequests and repo stats
Stars: ✭ 102 (+436.84%)
Mutual labels:  prometheus-exporter, prometheus-metrics
hcloud-ip-floater
k8s controller for Hetzner Cloud floating IPs
Stars: ✭ 43 (+126.32%)
Mutual labels:  hetzner, hcloud
gethexporter
Monitor your Geth Ethereum Server with Prometheus and Grafana
Stars: ✭ 103 (+442.11%)
Mutual labels:  prometheus-exporter, prometheus-metrics
pagerduty-exporter
Prometheus exporter for PagerDuty informations
Stars: ✭ 38 (+100%)
Mutual labels:  prometheus-exporter, prometheus-metrics

hcloud-pricing-exporter

Build Status PkgGoDev Go Report Card Docker Pulls Artifact HUB

A Prometheus exporter that connects to your HCloud account and collects data on your current expenses. The aim is to make cost of cloud infrastructure more transparent and manageable, especially for private projects.

Please note that no guarantees on correctness are made and any financial decisions should be always be based on the billing and cost functions provided by HCloud itself. Some hourly costs are estimations based on monthly costs, if the HCloud API does not provide an hourly expense.

Deployment

To run the exporter from the CLI you need to run the following commands:

# Just run it with the default settings
./hcloud-pricing-exporter -hcloud-token <TOKEN>

# Get the token from an ENV variable
export HCLOUD_TOKEN=<TOKEN>
./hcloud-pricing-exporter

# Run the exporter on a different port with another fetch interval
./hcloud-pricing-exporter -port 1234 -fetch-interval 45m

Alternatively, the exporter can be run by using the provided docker image:

docker run jangraefen/hcloud-pricing-exporter:latest -e HCLOUD_TOKEN=<TOKEN> -p 8080:8080

If you want to deploy the exporter to a Kubernetes environment, you can use the provided helm chart. Just perform the following commands:

helm repo add hcloud-pricing-exporter https://jangraefen.github.io/hcloud-pricing-exporter
helm repo update
helm upgrade --install hcloud-pricing-exporter hcloud-pricing-exporter/hcloud-pricing-exporter --version {VERSION}

Exported metrics

  • hcloud_pricing_floatingip_hourly{name, location} (Estimated based on the monthly price)
  • hcloud_pricing_floatingip_monthly{name, location}
  • hcloud_pricing_loadbalancer_hourly{name, location, type}
  • hcloud_pricing_loadbalancer_monthly{name, location, type}
  • hcloud_pricing_server_hourly{name, location, type}
  • hcloud_pricing_server_monthly{name, location, type}
  • hcloud_pricing_server_backups_hourly{name, location, type}
  • hcloud_pricing_server_backups_monthly{name, location, type}
  • hcloud_pricing_server_traffic_hourly{name, location, type} (Estimated based on the monthly price)
  • hcloud_pricing_server_traffic_monthly{name, location, type}
  • hcloud_pricing_snapshot_hourly{name} (Estimated based on the monthly price)
  • hcloud_pricing_snapshot_monthly{name}
  • hcloud_pricing_volume_hourly{name, location, bytes} (Estimated based on the monthly price)
  • hcloud_pricing_volume_monthly{name, location, bytes}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].