cloudscale-metrics-collector

command module
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: BSD-3-Clause Imports: 22 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL