Running jobs using Jenkins is one of the essential activities during the project development and maintenance, but the questions arise here: this is the only significant activity. What about that situation in which higher management wants to see the builds activity over a while. Here, Jenkins metrics and trends come into the picture. There are some plugins available in Jenkins using which we can easily see about build history over time. We are dedicating this article to understand the details of a few plugins that can help gather the Jenkins metrics and Trends for various jobs and activities. Let’s start the journey with the understanding of the below points:

  • What are the metrics and trends in Jenkins?
  • How to install the metric-related plugin in Jenkins?
  • And, how to view metrics in Jenkins?
  • How to install the trends-related plugin in Jenkins?
  • How to view trends in Jenkins?

What are the metrics and trends in Jenkins?

We stated in the introductory part that metrics and trends are helpful to present the metrics of builds that we carry out over a period of time. We can also view these metrics and trends with the help of graphical formats so that in a single report, we can easily analyze that what is the success and failure ratio of our builds over a while. For example, if we take the “Build History Metrics” plugin, then this plugin shows the following metrics for all of the builds in Jenkins:

  • MTTF (Metrics Time to Failure)
  • MTTR (Mean Time to Recovery)
  • Standard Deviation of Build Time

In the same case, if we install the “build-metrics” plugin in Jenkins, then we can see global build stats in graphical format. So, in the further sections, let’s talk about the installation and usage of these plugins.

#jenkins #jenkins metrics

Jenkins Metrics and Trends
1.50 GEEK