This application polls the Ionos API for Datacenter objects. These objects contain information on the amount of servers, RAM, and CPU cores currently in use. The data is logged and exposed as Prometheus metrics at the /metrics endpoint.
The application is packaged as a Helm chart for deployment. The compilation of container image and Helm chart are automated via Github Actions. The workflows are triggered once a semver git tag (of type '[0-9]+.[0-9]+.[0-9]+') is pushed. Container images are compiled and pushed to ghcr. The helm charts are pushed to this registry. For more details on application configuration and Helm chart packaging see /charts/ionos-exporter/README.md. The rollout of the provided Helm chart is automated with Ansible and the kubernetes.core.helm Module. A release follows these steps:
- Increment version and AppVersion in
charts/ionos-exporter/Chart.yaml
- Create a tag with
git tag <AppVersion>
. Make sure the tags versions matches with AppVersion. This is the default for the container images tag as defined incharts/ionos-exporter/templates/deployment.yaml
. - Push tags (and other changes) upstream with
git push origin --tags