Git Product home page Git Product logo

osstrack's Introduction

ossTrack

A simple monitor tool for keeping track of important OSS metrics evolution through time.

Overview

The tool consists of three main services:

  • a fetch service: a simple script that collects all the latest metrics from the GitHub API and stores it in a local database
  • a Rest API (port 8080): lets you query each metric and export it for further custom visualizations
  • a Web Dashboard (port 8050): lets you easily visualize all the metrics fetched so far

Usage

Prerequisites

You only need docker compose installed to run the monitoring tool.

Set Up

Before launching the application, make sure to modify inside the docker-compose.yml file the name (REPO_NAME) and organization (OWNER_NAME) of the repository you want to track. Those are specified as environment variables for the fetch service.

Once you have setup the correct repo and organization name, simply launch osstrack with docker compose:

docker compose up

This will fetch the latest metrics from the GitHub API, store them in the SQLite DB it just created, and expose the API and Dashboard to let you export/visualize the results.

Automate Fetching

By default, osstrack will fetch the latest up-to-date metrics from the GitHub API and store them in the DB alongside a unique date timestamp. It will only store one snapshot of the latest metrics per day.

What this means is that osstrack is meant to be run once every day. For this reason, it is very convenient to automate the daily execution of the docker compose, so that all the metrics can be updated every day.

This can be done simply with cron, for example:

0 0 * * * cd /path/to/osstrack && docker-compose restart

osstrack's People

Contributors

giovannialberto avatar

Watchers

 avatar

osstrack's Issues

automatically create metrics table on first run

Right now you have to manually create the metrics table before launching the fetch metrics script for the first time.

This needs to be automated also to be consistent with the docs in the readme.

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.