From 7e093dfd102f94e553aca367c4dcb40a4c4710c7 Mon Sep 17 00:00:00 2001 From: Gabriel Saratura Date: Thu, 6 Oct 2022 15:41:26 +0300 Subject: [PATCH] Add docs --- .../assets/images/application-logic.drawio.svg | 4 ++++ .../ROOT/pages/explanations/data-usage.adoc | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 docs/modules/ROOT/assets/images/application-logic.drawio.svg create mode 100644 docs/modules/ROOT/pages/explanations/data-usage.adoc diff --git a/docs/modules/ROOT/assets/images/application-logic.drawio.svg b/docs/modules/ROOT/assets/images/application-logic.drawio.svg new file mode 100644 index 0000000..ea1633b --- /dev/null +++ b/docs/modules/ROOT/assets/images/application-logic.drawio.svg @@ -0,0 +1,4 @@ + + + +
Exoscale buckets with usage size
Exoscale buckets...
K8s buckets with namespace and organisation
K8s buckets with...
Match by name
Match by name
postgres billing database
postgres billin...
Aggregate usage storage by namespace
Aggregate usage stor...
Text is not SVG - cannot display
\ No newline at end of file diff --git a/docs/modules/ROOT/pages/explanations/data-usage.adoc b/docs/modules/ROOT/pages/explanations/data-usage.adoc new file mode 100644 index 0000000..f4be2c4 --- /dev/null +++ b/docs/modules/ROOT/pages/explanations/data-usage.adoc @@ -0,0 +1,17 @@ += Data Usage + +This page gives a brief overview how buckets data usage is saved to the postgres billing database. + +== Data flow + +image::application-logic.drawio.svg[] + +== Data source +- Buckets are fetched from Exoscale Provider and K8s Cluster. +- The bucket names in Exoscale are unique across organisation which prevents clusters having same bucket names. + +== Data saving + +- The data is saved in a postgres database. +- A database must be provided in the postgres URL. +- The application ensures the initial configuration of specified database in the URL.