GithubHelp home page GithubHelp logo

isabella232 / reporting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kubeflow/reporting

0.0 0.0 0.0 603 KB

Repository for collecting and analyzing metrics about Kubeflow usage.

License: Apache License 2.0

Shell 0.02% Jsonnet 95.72% Jupyter Notebook 4.26%

reporting's Introduction

Kubeflow Usage Reporting

This repository is devoted to collection and analysis of Kubeflow usage.

Deploying Spartakus

We use spartakus to report and collect metrics.

The collector is a web service that runs on GKE backed by BigQuery.

Below are instructions describing the process we followed to setup Kubeflow's production instance of the collector.

Set relevant environment variables

. prod_env.sh

Create a cluster

gcloud container clusters create --project=kubeflow-usage reporting --zone=us-central1-c --machine-type=n1-standard-4

Create a static IP address to serve on

gcloud gcloud compute --project=${PROJECT} addresses create ${HOSTNAME} --global

Configure an A record for the kubeflow.org domain to map $FQDN to the static IP address obtained in the previous step.

Create the namespace for the collector.

kubectl create namespace kube-lego
kubectl create namespace ${NAMESPACE}

Create the BigQuery dataset and table

bq mk --project_id=${PROJECT} ${DATASET}
bq mk --project_id=${PROJECT} -t ${DATASET}.${TABLE} ~/git_spartakus/pkg/database/bigquery.schema.json

In GCP create a service account and download the private key

gcloud --project=${PROJECT} iam service-accounts create collector  --display-name="Spartakus collector."
gcloud projects add-iam-policy-binding ${PROJECT} --member=serviceAccount:${SERVICE_ACCOUNT} --role=roles/bigquery.dataEditor
gcloud --project=${PROJECT} iam service-accounts keys create \
    ${HOME}/secrets/key.${SERVICE_ACCOUNT}.json \
    --iam-account ${SERVICE_ACCOUNT}

kubectl -n ${NAMESPACE} create secret generic ${BIGQUERY_SECRET}  --from-file=bigquery.json=${HOME}/secrets/key.${SERVICE_ACCOUNT}.json

Deploy the collector

ks param set collector fqdn ${FQDN}
ks param set collector ipName ${HOSTNAME}
ks param set collector namespace ${NAMESPACE}
ks param set collector project ${PROJECT}
ks param set collector dataset ${DATASET}
ks param set collector table ${TABLE}

ks apply prod -c collector

reporting's People

Contributors

aronchick avatar jlewi avatar

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.