Code Monkey home page Code Monkey logo

jigmi's Introduction

Jigmi - Jitsi Generic Monitoring Infrastructure

This repo is for tracking and displaying various metrics that we want to track over time. For now it's far less ambitious than its name and will be used for tracking PSNR calculations over time, but may be extended in the future to track more data. It is designed to be used in conjunction with Jenkins CI, and refers to/uses variables defined in the Jenkins environment (such as build url, build number, etc.)

Building/deploying

npm install npm start The web server will run on port 8000 by default. The port can be customized by setting the PORT env variable, such as: PORT=8888 npm start

Pushing/accessing data

The web server currently serves 3 endpoints:

  • / will server the webpage which will display the charts
  • POSTing to /psnrResult will allow pushing a new PSNR test result. The body should be JSON encoded like so:
{
    "buildNum": <string: jenkins build number>,
    "buildUrl": <string: jenkins build url>,
    "psnr": <float: psnr value>
	"numSkippedFrames": <int: number of frames skipped during the test>,
	"numFrozenFrames": <int: the duration of frozen video, in frames>,
	"totalFrames": <int: the total amount of frames captured in the test>
}
  • GETing from /psnrResults will return all currently stored PSNR results, formatted like so:
[
    {
        "buildNum": 31,
        "buildUrl": "31",
        "psnr": 38.04434,
        "numFrozenFrames": 35,
        "numSkippedFrames": 33,
        "totalFrames": 303,
        "createdAt": "2017-10-30T20:21:44.001Z",
        "updatedAt": "2017-10-30T20:21:44.001Z"
    },
    {
        "buildNum": 43,
        "buildUrl": "http://ci.jitsi.org/brianbuild/25",
        "psnr": 37.9476,
        "numFrozenFrames": 14,
        "numSkippedFrames": 10,
        "totalFrames": 300,
        "createdAt": "2017-10-30T18:02:45.465Z",
        "updatedAt": "2017-10-30T18:02:45.465Z"
    }
]

jigmi's People

Contributors

bbaldino avatar bgrozev avatar

Watchers

Tomasz Zając 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.