Git Product home page Git Product logo

infra-statistics's Introduction

Jenkins Usage Statistics

Build Status

These scripts generate various data from existing census JSON files collected by the jenkins.io infrastructure. More specifically:

WHAT


this scipts will create the following files:

  • multiple SVG graphics showing different statistcs about the usage of jenkins

  • a file <plugin-name>.stats.jsonfor every plugin, containing the following data (example: git-plugin - git.stats.json ):

    • name: the name of the plugin (as used in the filename)
    • installations: the number of installations for a given month
    • installationsPercentage: the percentage of installations
    • installationsPerVersion: the number of plugin installations for for each plugin version
    • installationsPercentagePerVersion: the percentage of installations a specifig version of the plugin makes up
  • installations.json: the number of jenkins installations by the jenkins core version

  • capabilities.json: a reverse cumulation of the installations.json to assist plugin developers in choosing base versions for there further plugin development

HOWTO


Data

  1. you need to download the raw data (*.json.gz) from jenkins-ci.org

    $> groovy download.groovy [pwd]

SVG (optional)

  • generate the graphs ... you might have to increase the memory: JAVA_OPTS="-Xmx4000M"
$> export LANG=en
$> groovy generateStats.groovy

The final SVGs will be in [workspace]/target/svg

JSON (optional)

  1. collect the data from the raw json format and store it into a local SQLite database
$> export LANG=en
$> groovy collectNumbers.groovy`
  1. generate the fine grained data set (json) for each plugin

    $> groovy createJson.groovy

The final json files will be in [workspace]/target/stats - these files have to be uploaded to a webserver to make them available for the confluence plugin.

All the scripts can be reexecuted in case a failure happens, e.g. the download will only download the files he needs and collecting the numbers will only happen on the raw data which is not imported yet.

infra-statistics's People

Contributors

imod avatar kohsuke avatar abayer avatar daniel-beck avatar batmat avatar tobix avatar jsoref avatar timja avatar orrc avatar mpailloncy avatar

Watchers

James Cloos 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.