Git Product home page Git Product logo

Comments (20)

idvoretskyi avatar idvoretskyi commented on September 12, 2024

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.

from k8s.io.

idvoretskyi avatar idvoretskyi commented on September 12, 2024

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

from k8s.io.

hh avatar hh commented on September 12, 2024

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) 💯 🥇

from k8s.io.

hh avatar hh commented on September 12, 2024

Tracking implementation of per-namespace billing at #194

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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 (#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 (#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.

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024
  • 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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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.

from k8s.io.

dims avatar dims commented on September 12, 2024

/unassign
/assign @justinsb

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

@thockin unable to see report since july 1st

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

Latest report august 5th: https://groups.google.com/d/msg/kubernetes-wg-k8s-infra/uW7dEBaBWDY/-zXJc0QEBQAJ

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

spiffxp avatar spiffxp commented on September 12, 2024

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

from k8s.io.

thockin avatar thockin commented on September 12, 2024

@justinsb update on this?

from k8s.io.

thockin avatar thockin commented on September 12, 2024

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

from k8s.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.