Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.15 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.15 KB

github-metrics

Utilize GraphQL API and RestAPI to get the reachability metrics about Operator-SDK

The project utilizes GraphQL to scrape GitHub and obtain data about Operator-SDK.

Things-done:

  • Scrape github to get the list of repositories which use Operator-SDK - RestAPI.
  • Traverse through multiple pages to get the data.
  • Check for patterns in repositories.
  • Use GraphQL to update data.
  • Expose to prometheus.
  • Create Grafana dashboard.

Things TO-DO:

  • Work on gopkg.toml files
  • Collect additional metrics (version etc)
  • Process commit history

Running Script

Run:

$ python sdk-metrics.py

Metrics exposed on http://localhost:8000

Output:

  1. Data exposed at endpoint for Prometheus to scrape it: Image

  2. Data exposed in prometheus: Image-Data

  3. Same graph (just one metric is used as of now) - Similar graph is also obtained in grafana Image-graph