Skip to content

Export resource usage and cost data from prometheus running in cluster to external sql db

License

Notifications You must be signed in to change notification settings

equinor/radix-cost-allocation

Repository files navigation

build workflow SCM Compliance

RADIX-COST-ALLOCATION

Pulls and stores container and node information into a SQL Server database.

We use helm charts to install on cluster

We use arm template and github action to create azure resources

Deploy SQL scripts

The SQL Server database and objects are deployed on push to master and release branch. All SQL scripts on azure-infrastructure must be idempotent.

Deploy to cluster

Installation on cluster is handled by flux through flux repo.

tag in git repository (in master branch) - matching to the version of Version in charts/Chart.yaml

Developing

You need:

  • gomock (GO111MODULE=on go get github.com/golang/mock/mockgen@v1.5.0)

Clone the repo into your GOPATH and run go mod download.

Contributing

Want to contribute? Read our contributing guidelines

Generating mocks

We use gomock to generate mocks used in unit test. You need to regenerate mocks if you make changes to any of the interface types used by the application; Repository

make mocks

Update version

tag in git repository (in master branch) - matching to the version of appVersion in charts/Chart.yaml

Run following command to set tag (with corresponding version)

git tag v1.0.0
git push origin v1.0.0

Debugging locally

Create a copy of .env.template and name it .env. Set variables to allow local debugging. This file is ignored by git.


Security notification

About

Export resource usage and cost data from prometheus running in cluster to external sql db

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published