Jenkins

Metrics

Jenkins Metrics

  • jenkins_job_building_duration_count: This metric tracks the total number of build durations recorded. It counts how many times the duration of a job build has been measured.

  • jenkins_job_queuing_duration: This metric measures the total time that jobs have spent in the queue waiting to be executed. It gives insights into how long jobs are waiting before starting.

  • jenkins_job_queuing_duration_count: This metric counts the number of jobs that have been queued. It provides an indication of the total queuing activity.

  • jenkins_health_check_score: This metric indicates the overall health score of the Jenkins server, often based on various health checks and metrics.

  • jenkins_node_offline_value: This metric represents whether a Jenkins node (agent) is offline. A value of 1 typically indicates the node is offline, and 0 means it’s online.

  • jenkins_node_builds_count: This metric tracks the total number of builds executed by a specific Jenkins node (agent).

  • jenkins_runs_success_total: This metric counts the total number of successful builds across all jobs.

  • jenkins_runs_aborted_total: This metric counts the total number of builds that were aborted before completion.

  • jenkins_runs_unstable_total: This metric counts the total number of builds that completed but were marked as unstable, often due to test failures or warnings.

  • jenkins_runs_failure_total: This metric counts the total number of builds that failed to complete successfully.

  • jenkins_queue_size_value: This metric represents the current size of the build queue, indicating how many jobs are waiting to be executed.

  • jenkins_executor_free_value: This metric shows the number of available executors (threads) that are free to run jobs.

  • jenkins_job_building_duration: This metric measures the duration of time that jobs spend building, providing insights into build times.

  • default_jenkins_builds_last_build_duration_milliseconds: This metric tracks the duration of the most recent build in milliseconds, giving a snapshot of the latest build time.

  • jenkins_executor_in_use_value: This metric indicates the number of executors (threads) currently in use for running builds.

VM Metrics

  • vm_memory_total_max: This metric represents the maximum amount of memory available on the virtual machine.

  • vm_memory_total_used: This metric indicates the total amount of memory currently being used on the virtual machine.

  • vm_uptime_milliseconds: This metric measures the total uptime of the virtual machine in milliseconds, indicating how long the VM has been running.

  • vm_cpu_load: This metric represents the current CPU load on the virtual machine, giving an indication of how much processing power is being used.


Grafan Dashboard Panels

Processing Speed Panel

This panel tracks the speed at which Jenkins processes jobs, giving insights into the server’s efficiency in handling job execution.

  • Metrics Used: jenkins_job_building_duration_count

Job Queue Duration Panel

This panel, based on the metric jenkins_job_queuing_duration, shows the duration jobs spend in the queue before execution, with various quantiles to understand the distribution of job queuing times.

  • Metrics Used: jenkins_job_queuing_duration

Queued Rate Panel

This panel indicates the rate at which jobs are being queued in Jenkins, providing an overview of the workload and demand on the server.

  • Metrics Used: jenkins_job_queuing_duration_count

JVM Free Memory Panel

This panel shows the amount of free memory available in the JVM (Java Virtual Machine), crucial for ensuring Jenkins operates efficiently.

  • Metrics Used: vm_memory_total_max, vm_memory_total_used

Memory Usage Panel

This panel displays the current memory usage of the Jenkins server, helping to identify potential memory leaks and manage resource allocation.

  • Metrics Used: vm_memory_total_used

Jenkins Health Panel

This panel indicates the overall health of the Jenkins server, which is crucial for consistent and reliable job execution.

  • Metrics Used: jenkins_health_check_score

JVM Uptime Panel

This panel shows how long the JVM has been running since the last restart, providing insight into server stability.

  • Metrics Used: vm_uptime_milliseconds

Jenkins Nodes Offline Panel

This panel tracks the number of Jenkins nodes that are currently offline, helping to maintain optimal build capacity and identify node-specific issues.

  • Metrics Used: jenkins_node_offline_value

CPU Usage Panel

This panel displays the CPU usage percentage of the Jenkins server, aiding in the identification of performance bottlenecks.

  • Metrics Used: vm_cpu_load

Total Jobs Panel

This panel shows the total number of jobs in Jenkins, helping to understand the workload and manage job configurations effectively.

  • Metrics Used: jenkins_node_builds_count

Successful Jobs Panel

This panel tracks the number of jobs that have completed successfully, ensuring that Jenkins is running jobs correctly.

  • Metrics Used: jenkins_runs_success_total

Aborted Jobs Panel

This panel indicates the number of jobs that were aborted, providing insight into reasons behind job cancellations.

  • Metrics Used: jenkins_runs_aborted_total

Unstable Jobs Panel

This panel tracks jobs that finished with an unstable status, identifying potential issues with builds or tests.

  • Metrics Used: jenkins_runs_unstable_total

Failed Jobs Panel

This panel shows the number of jobs that have failed, helping to identify errors in build scripts or configurations.

  • Metrics Used: jenkins_runs_failure_total

Jenkins Queue Size Panel

This panel indicates the current size of the Jenkins job queue, helping to understand the current workload and potential delays in job execution.

  • Metrics Used: jenkins_queue_size_value

Executor Free Panel

This panel tracks the number of free executors available for running jobs, ensuring enough executors are available to handle the job load without delays.

  • Metrics Used: jenkins_executor_free_value

Executors Health Panel

This panel provides information on the health of Jenkins executors, crucial for efficient job execution and overall performance.

  • Metrics Used: jenkins_job_building_duration, jenkins_job_building_duration_count

Executor Build Duration Panel

This panel shows the duration of builds run by executors, helping to identify long-running builds and optimize job configurations.

  • Metrics Used: jenkins_job_building_duration, jenkins_job_building_duration_count

Job Duration Panel

This panel indicates the average duration of jobs, helping to understand the time taken for job completion and areas for optimization.

  • Metrics Used: default_jenkins_builds_last_build_duration_milliseconds

Executor In-Use Panel

This panel tracks the number of executors currently in use, helping to understand the load on the Jenkins server and ensure efficient resource utilization.

  • Metrics Used: jenkins_executor_in_use_value