Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Umbrella Issue] Setup Billing/Reporting for all k8s-infra assets #156

Closed
dims opened this issue Dec 5, 2018 · 20 comments
Closed

[Umbrella Issue] Setup Billing/Reporting for all k8s-infra assets #156

dims opened this issue Dec 5, 2018 · 20 comments
Assignees
Labels
area/billing Issues or PRs related to billing

Comments

@dims
Copy link
Member

dims commented Dec 5, 2018

We are starting with a GKE cluster for a few jobs. Once that is setup, we will need to make sure we account for the $'s spent with appropriate billing and make sure we have enough reports going back to Google / CNCF.

/assign @idvoretskyi

@idvoretskyi
Copy link
Member

I made brief research and figured out that the most efficient way for us to have the historical billing usage data is BigQuery export (https://cloud.google.com/billing/docs/how-to/export-data-bigquery); it also allows us to visualize the data with Data Studio - https://cloud.google.com/billing/docs/how-to/visualize-data.

An alternative method is exporting to CSV/JSON file, which is easier, but less-feature-rich (https://cloud.google.com/billing/docs/how-to/export-data-file).

PS. BigQuery export requires a specific bigquery.datasets.create permission on GCP.

@idvoretskyi
Copy link
Member

cc @hh who is going to work on the Bigquery + DataStudio utilization.

@hh
Copy link
Member

hh commented Feb 20, 2019

Brought #193 under this umbrella so we know where our storage costs are going.

Thank you @justinsb for bringing this up! (and for keeps kops infra up until the transition) 💯 🥇

@hh
Copy link
Member

hh commented Feb 20, 2019

Tracking implementation of per-namespace billing at #194

@spiffxp
Copy link
Member

spiffxp commented Apr 30, 2019

My ideal outcome for this:

  • at the start of each wg-k8s-infra meeting we can look at generated reports
  • for cluster-based infra, we can see per-namespace billing info (Per k8s namespace billing information #194)... ie: if we added the "gcsweb" service, would we know how much extra that is costing us
  • for artifact storage, we can see how much a given subproject / sig is costing us (Storage Analysis for Billing #193)
  • for non-cluster based infra, we can see per-project billing info... ie: how much is dns costing us, how much is bigquery costing us, etc.

@spiffxp
Copy link
Member

spiffxp commented May 1, 2019

In the most recent wg-k8s-infra meeting, Tim was able to read out "the default GCP billing report." This allowed him to break down costs over the past two weeks as follows:

  • vm (compute, ram, ssd pv)
  • dns (queries)
  • load balancing
  • dns-zone
  • inter-zone egress
  • (no storage bills as of yet)

Next step: demo of data studio analysis of data in bigquery #242

@spiffxp
Copy link
Member

spiffxp commented May 1, 2019

  • Want parity of number between tim's readout and justin's readout
  • Answer on billing-per-bucket
  • Find more info on billing-per-namespace
  • Possibly send daily reports to google group

@spiffxp
Copy link
Member

spiffxp commented Jun 12, 2019

Justin is getting a daily e-mail, will send to cluster admins google group, still have questions about parity

@spiffxp
Copy link
Member

spiffxp commented Jun 12, 2019

Justin to look at sharing Data Studio report with other users, possibly use another group as defined in groups.yaml

TBD whether we can export / import Data Studio reports to use some kind of gitops driven model

@spiffxp
Copy link
Member

spiffxp commented Jun 26, 2019

/assign @justinsb
Now sending billing report out to a google group, still not sure how to allow others to edit the report

@spiffxp
Copy link
Member

spiffxp commented Jun 26, 2019

Would like to continue to cross check this billing report against tim's billing report

@spiffxp
Copy link
Member

spiffxp commented Jun 26, 2019

Send report weekly to public google group https://groups.google.com/forum/#!forum/kubernetes-wg-k8s-infra

Send report daily to existing google group of k8s-infra-gcp-accounting

@spiffxp
Copy link
Member

spiffxp commented Jun 26, 2019

Backing up / sharing the work:

  • lets open up the Data Studio project to the k8s-infra-gcp-account group
  • may want to consider dumping sql query out, or finding a way to make the data studio report public read-only, etc.

@dims
Copy link
Member Author

dims commented Jul 8, 2019

/unassign
/assign @justinsb

@spiffxp
Copy link
Member

spiffxp commented Jul 10, 2019

@thockin unable to see report since july 1st

@spiffxp
Copy link
Member

spiffxp commented Aug 7, 2019

@spiffxp
Copy link
Member

spiffxp commented Aug 7, 2019

would like to share edit access of the report to a group... k8s-infra-gcp-accounting can already edit it

would like some kind of README in an accounting directory

nice to have: other people provide other data studio addons

@spiffxp
Copy link
Member

spiffxp commented Aug 7, 2019

will continue to spot check as a recurring agenda item but we are ready to call this done

@thockin
Copy link
Member

thockin commented Oct 23, 2019

@justinsb update on this?

@thockin
Copy link
Member

thockin commented Dec 11, 2019

This is done. The billing report should be accessible to anyone in the k8s-infra group. To make it truly world-readable we'd need to recreate it on a non google-com email. Maybe a kubernetes.io gsuite account for publish docs like this? Will open an issue

@thockin thockin closed this as completed Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/billing Issues or PRs related to billing
Projects
None yet
Development

No branches or pull requests

6 participants