• This repository has been archived on 30/Mar/2023
  • Stars
    star
    445
  • Rank 98,085 (Top 2 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📈CNCF-created tool for analyzing and graphing developer contributions

Build Status CII Best Practices

GitHub archives and git Grafana visualization dashboards

Authors: Łukasz Gryglicki [email protected], Justyna Gryglicka [email protected].

This is a toolset to visualize GitHub archives using Grafana dashboards.

GHA2DB stands for GitHub Archives to DashBoards.

More information about Kubernetes dashboards here.

Kubernetes and Helm

Please see example Helm chart for an example Helm deployment.

Please see Helm chart for a full Helm deployment.

Please see LF Helm chart for the LF Helm deployment (it is a data deployment, has no Grafana, and uses ElasticSearch in addition to Postgres to store data).

Please see GraphQL Helm chart for GraphQL foundation DevStats deployment.

Please see Kubernetes dashboard if you want to enable a local dashboard to explore the cluster state.

Please see bare metal example to see an example of bare metal deployment.

The rest of this document describes the current bare metal deployment on metal.equinix.com used by CNCF projects.

Presentations

  • Presentations are available here.
  • Direct link.
  • Another direct link.

Talks

Architecture

DevStats is deployed using Helm on Kubernetes running on bare metal servers provided by Equinix.

DevStats is written in Go, it uses GitHub archives, GitHub API and git as its main data sources.

Under the hood, DevStats uses the following CNCF projects:

  • Helm (for deployment).
  • containerd (as a Kubernetes container runtime, CRI).
  • cert-manager (for HTTPS/SSL certificates).
  • OpenEBS (for local storage volumes support).
  • MetalLB (as a load balancer for bare metal servers).
  • CoreDNS (Kubernetes internal DNS).

And other projects, including:

  • Equinix (bare metal servers provider).
  • Ubuntu (containers base operating system).
  • kubeadm (for installing Kubernetes).
  • NFS (for shared write network volumes support).
  • NGINX (for ingress).
  • Calico (as networking for Kubernetes, CNI).
  • Golang (DevStats is written in Go).
  • PostgreSQL (DevStats database is Postgres).
  • patroni (HA deployment of PostgreSQL database, tweaked for DevStats).
  • GitHub archives (main data source).
  • GitHub API (data source).
  • git (data source).
  • Grafana (UI).
  • Let's Encrypt (provides HTTPS/SSL certificates).
  • Travis CI (continuous integration & testing).

Please check this for a detailed architecture description.

Deploying on your own project(s)

See the simple DevStats example repository for single project deployment (Homebrew), follow instructions to deploy for your own project.

Goal

We want to create a toolset for visualizing various metrics for the Kubernetes community (and also for all CNCF projects).

Everything is open source so that it can be used by other CNCF and non-CNCF open source projects.

The only requirement is that project must be hosted on a public GitHub repository/repositories.

Data hiding

If you want to hide your data (replace with anon-#) please follow the instructions here.

Forking and installing locally

This toolset uses only Open Source tools: GitHub archives, GitHub API, git, Postgres databases, and multiple Grafana instances. It is written in Go and can be forked and installed by anyone.

Contributions and PRs are welcome. If you see a bug or want to add a new metric please create an issue and/or PR.

To work on this project locally please fork the original repository, and:

Please see Development for local development guide.

For more detailed description of all environment variables, tools, switches, etc, please see Usage.

Metrics

We want to support all kinds of metrics, including historical ones. Please see requested metrics to see what kind of metrics are needed. Many of them cannot be computed based on the data sources currently used.

Repository groups

There are some groups of repositories that are grouped together as a repository groups. They are defined in scripts/kubernetes/repo_groups.sql.

To setup default repository groups:

  • PG_PASS=pwd ./kubernetes/setup_repo_groups.sh.

This is a part of kubernetes/psql.sh script and kubernetes psql dump already has groups configured.

In an All CNCF project repository groups are mapped to individual CNCF projects scripts/all/repo_groups.sql:

Company Affiliations

We also want to have per company statistics. To implement such metrics we need a mapping of developers and their employers.

There is a project that attempts to create such mapping cncf/gitdm.

DevStats has an import tool that fetches company affiliations from cncf/gitdm and allows to create per company metrics/statistics. It also uses companies.yaml file to map company acquisitions (any data generated by a company acquired by another company is assigned to the latter using a mapping from companies.yaml).

If you see errors in the company affiliations, please open a pull request on cncf/gitdm and the updates will be reflected on https://k8s.devstats.cncf.io a couple of days after the PR has been accepted. Note that gitdm supports mapping based on dates, to account for developers moving between companies.

New affiliations are imported into DevStats about 1-2 times/month.

Architecture

For architecture details please see architecture file.

Detailed usage is here

Adding new metrics

Please see metrics to see how to add new metrics.

Adding new projects

To add a new project on a bare metal deployment follow adding new project instructions.

See cncf/devstats-helm:ADDING_NEW_PROJECTS.md for information about how to add more projects on Kubernetes/Helm deployment.

Grafana dashboards

Please see dashboards to see a list of already defined Grafana dashboards.

Exporting data

Please see exporting.

Detailed Usage instructions

Servers

The servers to run devstats are generously provided by Equinix bare metal hosting as part of CNCF's Community Infrastructure Lab.

One line run all projects

  • Use GHA2DB_PROJECTS_OVERRIDE="+cncf" PG_PASS=pwd devstats.
  • Or add this command using crontab -e to run every hour HH:08.

Checking projects activity

  • Use: PG_PASS=... PG_DB=allprj ./devel/activity.sh '1 month,,' > all.txt.
  • Example results here - all CNCF project activity during January 2018, excluding bots.

More Repositories

1

landscape

🌄 The Cloud Native Interactive Landscape filters and sorts hundreds of projects and products, and shows details including GitHub stars, funding, first and last commits, contributor counts and headquarters location.
9,268
star
2

curriculum

📚Open Source Curriculum for CNCF Certification Courses
5,501
star
3

mentoring

👩🏿‍🎓👨🏽‍🎓👩🏻‍🎓CNCF Mentoring: LFX Mentorship + Summer of Code
2,385
star
4

tag-security

🔐CNCF Security Technical Advisory Group -- secure access, policy control, privacy, auditing, explainability and more!
HTML
2,045
star
5

toc

⚖️ The CNCF Technical Oversight Committee (TOC) is the technical governing body of the CNCF Foundation.
1,595
star
6

wg-serverless

CNCF Serverless WG
1,515
star
7

presentations

📊 Presentations from the CNCF community to share and reuse
Go
891
star
8

k8s-conformance

🧪CNCF K8s Conformance Working Group
Shell
855
star
9

tag-app-delivery

📨🚚CNCF App Delivery TAG
HTML
774
star
10

trailmap

🗺TrailMap files from the cncf/landscape repo
652
star
11

glossary

The CNCF Cloud Native Glossary Project aims to define cloud native concepts in clear and simple language, making them accessible to anyone — whether they have a technical background or not (https://glossary.cncf.io).
HTML
651
star
12

tag-observability

Technical Advisory Group for Observability 🔭⚙️
HTML
641
star
13

foundation

☁️♮🏛 This repo contains several documents related to the operation of the CNCF. File non-technical issues related to CNCF here.
Rich Text Format
559
star
14

artwork

🎨 CNCF-related logos and artwork
533
star
15

financial-user-group

💰💸☁️ For those interested in running Kubernetes in highly regulated environments, particularly financial services
301
star
16

students

CNCF resource for students looking to get into the cloud native community.
296
star
17

landscapeapp

🌄Upstream landscape generation application
JavaScript
253
star
18

tag-env-sustainability

🌳🌍♻️ TAG Environmental Sustainability
HTML
236
star
19

kubernetes-community-days

📅 Kubernetes Community Days website
229
star
20

udpa

🌌📊✈Universal Data Plane API Working Group (UDPA-WG)
Starlark
229
star
21

xds

xDS API Working Group
Starlark
203
star
22

memorials

🕯️💐CNCF Community Memorials
182
star
23

velocity

🚅Track development velocity
Shell
181
star
24

tag-contributor-strategy

CNCF Technical Advisory Group on Contributor Strategy -- maintainer relations, building up contributors, governance, graduation, and more.
HTML
176
star
25

cloud-native-community-cookbook

A beautiful cookbook with recipes from around the cloud native community.
173
star
26

gitdm.archive

📜Fork for tracking CNCF projects
Ruby
169
star
27

llm-starter-pack

🤖 Get started with LLMs on your kind cluster, today!
Python
166
star
28

cnf-testbed

ARCHIVED: 🧪🛏️Cloud-native Network Function (CNF) Testbed --> See LFN Cloud Native Telecom Initiative https://wiki.lfnetworking.org/pages/viewpage.action?pageId=113213592
Shell
163
star
29

contribute

🙋🏿‍♀️🙋🏽‍♂️🙋🏻‍♀️Contribution guide to the CNCF ecosystem
Go
161
star
30

tag-storage

🗄CNCF Storage TAG
157
star
31

cluster

🖥🖥🖥🖥CNCF Community Cluster
154
star
32

communitygroups

👩🏿‍💻👨🏿‍💻👩🏾‍💻👨🏾‍💻👩🏽‍💻👨🏽‍💻👩🏼‍💻👨🏼‍💻👩🏻‍💻👨🏻‍💻CNCF Community Groups (formerly meetups)
152
star
33

landscape2

Landscape2 is a tool that generates interactive landscapes websites
TypeScript
152
star
34

ambassadors

🌏🌎🌍 CNCF Ambassadors
151
star
35

llm-in-action

🤖 Discover how to apply your LLM app skills on Kubernetes!
Python
136
star
36

cartografos

The Cartografos working group aims to provide tools to help adopters and end-users to navigate the CNCF landscape and the wider cloud native ecosystem.
HTML
131
star
37

telecom-user-group

📞📱☎️Public info for the CNCF Telecom User Group
127
star
38

sandbox

Applications for Sandbox go here! ⏳📦🧪
120
star
39

cncf-fuzzing

✨🔐 CNCF Fuzzers
Go
111
star
40

clomonitor

CLOMonitor is a tool that periodically checks open source projects repositories to verify they meet certain project health best practices
TypeScript
107
star
41

svg-autocrop

🚗🌽🔳An NPM module to autocrop and slim down SVGs
JavaScript
105
star
42

gitvote

GitVote is a GitHub application that allows holding a vote on issues and pull requests
Rust
105
star
43

surveys

📝📊 CNCF Survey Data
92
star
44

clotributor

Discover great opportunities to become a Cloud Native contributor
TypeScript
88
star
45

enduser-public

🔚👩🏾‍💻👨🏽‍💻👩🏼‍💻CNCF End User Community
82
star
46

tag-runtime

🏃🏿‍♀️🏃🏽‍♀️🏃🏻‍♂️🕒CNCF Technical Advisory Group for Runtime
HTML
82
star
47

cncf.io

☁️♮🏛🚧 The CNCF.io WordPress website
PHP
81
star
48

research-user-group

📚 👨‍🔬 👩‍🔬 Discussion and advancement of Research Computing using Cloud Native technologies
77
star
49

demo

Demo of CNCF technologies
JavaScript
77
star
50

devstats

📈CNCF-created tool for analyzing and graphing developer contributions
Shell
74
star
51

servicedesk

💁‍♀️💁‍♂️📥 Maintainers can get project-related help from the CNCF
73
star
52

people

Stores the data that will populate the various people listings on cncf.io
Makefile
72
star
53

tag-network

🌐 CNCF Network TAG
70
star
54

project-template

CNCF Project Template
66
star
55

devstatscode

📈DevStats code
Go
43
star
56

clowarden

CLOWarden is a tool that manages access to resources across multiple services
Rust
43
star
57

techdocs

CNCF TechDocs Team
41
star
58

dot-org-hugo-theme

Hugo theme ideal for Organizations to use. Built initially for the TODO site redesign.
SCSS
38
star
59

landscape-graph

CNCF Landscape Graph, data model, and applications.
Jupyter Notebook
38
star
60

kubestronaut

38
star
61

wg-ci

🔄CNCF CI Working Group
36
star
62

cloudnativetv

The home for CloudNative.tv the definitive interactive media experience for learning and growing in cloud native
CUE
34
star
63

radar

CNCF Tech Radar
JavaScript
33
star
64

gitdm

📜Fork for tracking CNCF projects
Ruby
30
star
65

cla

✍CLAs for CNCF
29
star
66

zero-to-merge

☁️ A comprehensive, four-week program designed to help you effectively navigate contributions to CNCF projects.
28
star
67

wg-networking

📡📶CNCF Networking WG
26
star
68

hugo-netlify-starter

Static website template for CNCF projects
HTML
26
star
69

landscape2-sites

Landscape2 sites settings and deployment workflows
25
star
70

awards

🏆 CNCF Community Awards
20
star
71

public-sector-user-group

🏛️ 🗣️ ☁️ CNCF User Group focused on advancing cloud computing in the public sector
20
star
72

contribcard

Contribcard is a tool that generates cards for your projects contributors
TypeScript
19
star
73

devstats-example

📈Example DevStats deployment for single project - Homebrew
Shell
19
star
74

chaosengineering-wg

Chaos Engineering Working Group 💥⚙️🧰
16
star
75

crossplane-conformance

Crossplane Conformance Program
16
star
76

wg-coc

⚖️ CNCF Code of Conduct WG
14
star
77

tab

⚖️ End User Technical Advisory Board (TAB)
12
star
78

devstats-helm

📈DevStats deployment on Kubernetes using Equinix servers and Helm, CoreDNS, containerd, MetalLB, OpenEBS, nginx-ingress, nginx, cert-manager, nfs-server-provisioner.
Shell
11
star
79

devstats-docker-images

📈DevStats docker images: minimal (hourly cron job sync), full (provisioning/bootstraping), Grafana (UI endpoint)
Shell
10
star
80

prometheus-conformance

Prometheus Conformance Program
9
star
81

hnscraping

👩🏾‍💻📰🧽Hacker News hiring scraping
Ruby
9
star
82

devstats-reports

📈various reports generated from DevStats databases
Shell
9
star
83

filterable-landscape

Interactive version of the Cloud Native Landscape
JavaScript
9
star
84

clbo

CLBO - Entertainment and education in the Cloud Native ecosystem
Go
9
star
85

images

Images for deploying to clouds
8
star
86

sig-security-events

🔐📅SIG Security Events
HTML
8
star
87

site-boilerplate

👀🍲🍛Basic website and documentation starter for CNCF projects
HTML
8
star
88

svg-autocrop-serverless

🚗🌽🔳💁‍♀️🙅‍♀️💁‍♂️🙅‍♂️Serverless infrastructure for SVG Autocrop
HTML
8
star
89

hnanalysis

👩🏾‍💻📰Hacker News analysis
Go
8
star
90

china-video-block

🇨🇳🎬🧱Wordpress Gutenberg plugin to offer the same video via qq or YouTube depending on browser IP address
PHP
8
star
91

devstats-helm-graphql

📈DevStats deployement for the GraphQL foundation
Shell
7
star
92

business-value

CNCF Business Value Subcommittee
7
star
93

foundation-starter-kit

🏛🐣🎛 Recommended Hugo starter site for open source foundations
HTML
7
star
94

landscape2-validate-action

This GitHub action checks if the provided landscape data file is valid
7
star
95

transportation-user-group

🛩 🚅 🚘 A CNCF User Group focused on advancing cloud computing in the transportation industry
7
star
96

dco2

GitHub App that enforces the Developer Certificate of Origin (DCO) on Pull Requests
Rust
6
star
97

devstats-helm-example

📈DevStats example deployment using Helm
Shell
6
star
98

cncf-branding

🖼 Color codes and logos for all CNCF projects
HTML
6
star
99

cloud-native-days

📅Cloud Native Days website
HTML
6
star
100

clone-page-tree

👩‍👩‍👧‍👧 📄🌲Wordpress plugin to duplicate a page and all of its subpages
PHP
6
star