Categorygithub.com/vshn/cloudscale-metrics-collector
modulepackage
0.5.2
Repository: https://github.com/vshn/cloudscale-metrics-collector.git
Documentation: pkg.go.dev

# README

cloudscale-metrics-collector

Build Go version Version GitHub downloads

Batch job to sync usage data from the Cloudscale.ch metrics API to the APPUiO Cloud reporting database.

See the component documentation for more information.

Getting started

You'll need a working setup of provider-cloudscale and appuio-cloud-reporting to be able to test this collector. Make sure to follow their READMEs accordingly.

Then, set the following env variables:

# how many days since now metrics should be fetched from
DAYS=2

ACR_DB_URL=postgres://reporting:reporting@localhost/appuio-cloud-reporting-test
CLOUDSCALE_API_TOKEN=<API TOKEN>

# either set server url and token
KUBERNETES_SERVER_URL=<TOKEN>
KUBERNETES_SERVER_TOKEN=<TOKEN>

# or set a KUBECONFIG - this also circumvents potential x509 certificate errors when connecting to a local cluster
KUBECONFIG=/path/to/provider-cloudscale/.kind/kind-kubeconfig-v1.24.0

# Packages

No description provided by the author

# Structs

AccumulateKey represents one data point ("fact") in the billing database.