community/devstats/config
..
cron
devel
docs
git
grafana
hide
kubeflow
metrics
partials
scripts
shared
sqlite
util_sql
INSTALL_UBUNTU18.md
README.md
SETUP_OTHER_PROJECT.md
copy_devstats_binaries.sh
crontab
deploy.sh
devstats.sh
find.sh
github_users.json
grafana.sh
projects.yaml
run.sh

README.md

A fork of https://github.com/cncf/devstats-example

  • This directory contains the config files for Kubeflow

  • It is based on https://github.com/cncf/devstats-example and then modified

    • There are probably still references that need to be udpated
  • Key files

    • projects.yaml - Defines the project
    • grafana/dashboards - Dashboards and grafana config

Here's how we created this

  1. We follow Setup other project

  2. We copied it to this directory

  3. Copy over dashaboards

    • I used the knative dashboards in cncf/devstats at commit 3c419a61ad130c80c7f1b7a5058eb0fd792b4201 (current devstats master) rather than the homebrew ones in devstats-example

    • Run the following script to update the dashboards

      ${GIT_KUBEFLOW_COMMUNITY}/devstats/modify_dashboards.sh ${GIT_DEVSTATS_EXAMPLE_FORK}/grafana/dashboards/kubeflow
      
  4. Run `the following script to add the -E command to sudo commands

    ./scripts/modify_devstats_scripts.sh ./config/devel/
    
  5. Copy over metrics from cncf/devstats

    • We don't use cncf/devstats-examples because it has fewer metrics

    • Copy cncf/devstats/metrics/shared to metrics/shared

    • Copy cncf/devstats/metrics/knative to metrics/kubeflow

      • Modify metrics/kubeflow to replace references to knative with kubeflow
  6. Copy scripts/homebrew to scripts/kubeflow

    • Update repo_groups.sql
  7. Copy the K8s dashboards https://github.com/cncf/devstats/tree/master/grafana/dashboards/kubernetes to ks-app/components/grafana/dashboards/

  8. Run modify_dashboards.sh to update all references to knative to kubeflow

  9. Modified projects.yaml to define a Kubeflow project