Giter Club home page Giter Club logo

pipeline_stats's Introduction

pipeline stats

Publishing Traces

  1. Start jaeger all in one docker image:
$ docker pull jaegertracing/all-in-one:1.7
$ docker run -p 6831:6831/udp -p 6832:6832/udp -p 16686:16686 jaegertracing/all-in-one:1.7 --log-level=debug
  1. Send traces to jaeger:
$ bundle install
$ bundle exec rake publish
  1. Browse to http://localhost:16686

Trace Collection

To collect traces from the last run of a puppet-agent pipeline:

$ BRANCH=master bundle exec collector

Or specify a specific build number of the Promote to PE job:

$ BUILD_NUMBER=274 BRANCH=master bundle exec collector

Results

The collector will generate a results file containing metadata and timing information for each job in the pipeline. For example:

---
:name: puppet-agent-5.5.x
:sha: 2915296c864d120e5805fb1f4afec6c99a777193
:start: 1568271663277
:stop: 1568299696273
:total: 443130046
:results:
- :name: suite-init
  :number: 311
  :metrics:
    :start: 1568271663277
    :executing: 12244
    :blocked: 0
    :waiting: 4291
    :buildable: 57732
    :queuing: 62023
    :total: 74267
    :stop: 1568271737544
  :parent: 

The file contains the puppet-agent branch and SHA, the results for each job in the pipeline, and the detailed timing information for each job.

Metrics

The collected metrics are based on the states described in Jenkins Build Queue.

  • waiting - how long the job was waiting in the queue before it could be considered for execution. There can be a non-zero amount of time between the time the job is added to the queue and when the Jenkins Queue Task Dispatcher evaluates the job.
  • blocked - how long the job was blocked for any reason. Could be due to waiting for ABS resources, upstream/downstream build in progress, etc.
  • buildable - how long the job was waiting for an executor to run, such as a static jenkins runner, mesos agent, etc
  • queueing - sum of waiting, blocked, buildable
  • executing - how long the job ran for
  • total - sum of queuing and executing
  • start/stop - start and stop times in seconds UTC

Issues

pipeline_stats's People

Contributors

joshcooper avatar

Watchers

 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.