Until now, Laura found out about Jenkins problems the way almost everyone does: when Diego wrote in #ci-orders that "Jenkins is incredibly slow" or that his build had been sitting in the queue for twenty minutes. By then the problem has already cost the whole team time. Monitoring means knowing how Jenkins is doing before anyone complains: whether the queue is growing, whether the executors cannot keep up, whether the controller's memory or the disk is running out, whether builds are failing more than usual or taking longer than last week. In this lesson you will see what to measure and with which thresholds, the tools Jenkins ships with (System Information, System Log with log recorders, Load Statistics and node status), the Metrics and Prometheus metrics plugins, and you will extend docker-compose.yml with Prometheus, Grafana and Alertmanager to get dashboards and alerts. You will also see the simple alternative, the Monitoring plugin (JavaMelody), and how to watch the watcher from the outside.

What to Monitor and Why

Area What it tells you Sample problem
Controller health Whether Jenkins responds and has resources Memory (heap) exhausted: the interface freezes
Agents Whether there is capacity to build linux-agent-01 offline because its disk is full
Queue Whether capacity is sufficient Builds waiting minutes for an executor
Build performance Whether the delivery process is degrading orders-api goes from 2 to 6 minutes
Disk Whether there is space left in JENKINS_HOME and on the agents History and artifacts fill up the volume

Key metrics with suggested thresholds for the TecnoShop installation (two executors):

Metric Suggested alert threshold What to do if it is exceeded
Jenkins reachable No response for 5 min Check the container and its logs
Queue length More than 5 items for 15 min Check for offline agents, hung builds or lack of capacity
Time in queue 95th percentile above 5 min Add executors or agents (08-05)
Busy executors More than 90% for 30 min Plan capacity
Controller JVM heap More than 85% for 10 min Find the cause (plugins, heavy Groovy in pipelines) before adding memory (09-03)
Free disk in JENKINS_HOME Less than 15% Review build and artifact retention (05-04)
Free disk on agents Below the node monitor threshold Clean up workspaces and caches (05-01)
Offline agents Any, for more than 10 min Check the node's Log
Failed builds main red for more than 1 hour, or more than 20% failures in a day Notify the owning team
Average build duration 50% above the average of the previous two weeks Find out which stage has grown longer

The thresholds are a starting point: adjust them with real data from your installation after a few weeks. An alert that fires every day for no reason ends up ignored, and then it does not warn you on the day that matters.

Built-In Tools: System Information

Manage Jenkins → System Information shows the state of the controller:

  • System Properties: JVM properties, such as java.version, java.vendor or the -D options it was started with.
  • Environment Variables: the environment of the Jenkins process.
  • Plugins: list of plugins and versions.
  • Memory Usage: a chart of the JVM's memory usage.
  • Thread Dump: the state of every thread at that instant, useful when Jenkins seems to hang.

Each node has its own System Information page (on the node's page), with the properties and environment of the agent. It is the quick way to check, for example, that linux-agent-01 has the MAVEN_OPTS variable from 05-01.

System Log and Custom Log Recorders

Manage Jenkins → System Log shows Jenkins' internal log (All Jenkins Logs). It is the same one you see with docker compose logs jenkins-controller, but filterable from the interface.

When you need to investigate a specific part in more detail, create a log recorder: a log that captures the messages of certain loggers (usually, a plugin's Java packages) at a higher level of detail than usual. Example: orders-api scans fail from time to time with authentication errors and you want to see what Git and the credentials plugin are doing.

  1. Manage Jenkins → System Log → Add recorder (or New Log Recorder).
  2. Name: git-and-credentials. Create.
  3. Loggers → Add:
Logger Log level
hudson.plugins.git FINE
jenkins.plugins.git FINE
com.cloudbees.plugins.credentials FINE
  1. Save. Run a scan and open the recorder: you will see the detailed messages from those packages.

Explanation:

  • The logger name is the Java package of the code you want to observe. hudson.plugins.git and jenkins.plugins.git belong to the Git plugin; com.cloudbees.plugins.credentials, to the Credentials plugin. You can usually find them in each plugin's documentation or source code.
  • Levels go from least to most detail: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL.
  • The recorder keeps the latest messages in memory; it is not a historical archive.
  • Delete it or lower the level when you are done: FINE on very active packages produces a lot of volume and consumes controller CPU and memory.

Load Statistics and Node Status

Manage Jenkins → Load Statistics plots several series on three time scales (short, medium, long):

Series Meaning
Online executors Connected executors
Busy executors Executors in use
Available executors Idle executors
Queue length Items in the queue

How to read it:

  • Busy hugging Online and Queue length above zero for a long time: you are short of executors.
  • High Queue length with low Busy: builds are waiting for something other than capacity, such as a label that no node has or a disconnected agent.

The same charts exist per label, on the label's page (http://localhost:8080/label/linux/), to see the load on the linux nodes. Together with the Manage Jenkins → Nodes table and its monitors (disk, swap, response time) that you configured in 05-01, this is all you need for an initial diagnosis. What they do not offer is long-term history or alerts: that is what the following plugins and tools are for.

The Metrics Plugin: Health Checks

The Metrics plugin collects internal Jenkins measurements (queue, executors, memory, build times) and provides health checks. It is also a dependency of the Prometheus plugin.

  1. Install Metrics.
  2. Manage Jenkins → System → Metrics → Access keys → Add: description external-monitoring, Generate to create the key, and check only the Ping and Health check permissions. Save.

With the key (fake in the example) you get these endpoints:

curl -s http://localhost:8080/metrics/fakeKey0000/ping
curl -s http://localhost:8080/metrics/fakeKey0000/healthcheck | jq .
  • /ping: responds pong if Jenkins is serving requests.
  • /healthcheck: returns a JSON document with several checks and HTTP status 200 if they all pass (or 500 if any fails):
{
  "disk-space": { "healthy": true },
  "plugins": { "healthy": true, "message": "No failed plugins" },
  "temporary-space": { "healthy": true },
  "thread-deadlock": { "healthy": true }
}
  • disk-space and temporary-space: free space in JENKINS_HOME and in the temporary directory.
  • plugins: whether any plugin failed to load.
  • thread-deadlock: whether there are threads deadlocked with each other.

The access key only allows the operations you checked; even so, treat it as a secret and do not publish it.

The Prometheus Metrics Plugin

Prometheus is a monitoring system that scrapes metrics over HTTP at regular intervals and stores them as time series. The Prometheus metrics plugin publishes Jenkins metrics in the format Prometheus understands.

  1. Install Prometheus metrics (it will install Metrics if you do not have it). Add it, like any other plugin, to the plugins.txt from 05-04.
  2. Manage Jenkins → System → Prometheus:
Option Value Explanation
Path prometheus The metrics are served at http://localhost:8080/prometheus/
Default Namespace default Prefix for the plugin's own metrics
Collecting metrics period in seconds 120 How often it recalculates job and build metrics
Enable authentication for prometheus end-point Checked Requires a user with permission to read them
  1. Create the technical user metrics (as you proposed in exercise 3 of 05-02), a global role metrics with Overall/Read and Metrics/View, assign it to the user and generate an API token named prometheus.

Test the endpoint:

curl -s -u "metrics:$METRICS_TOKEN" http://localhost:8080/prometheus/ | grep -E '^(jenkins_queue_size_value|jenkins_executor_count_value|vm_memory_heap_usage|default_jenkins_builds_last_build_result_ordinal)'

You will see lines in the Prometheus text format:

jenkins_queue_size_value 0.0
jenkins_executor_count_value 2.0
vm_memory_heap_usage 0.41
default_jenkins_builds_last_build_result_ordinal{jenkins_job="orders-api/main",repo="NA",} 0.0
  • Each line is a metric, optionally with labels in braces (jenkins_job="orders-api/main"), and a value.
  • Metrics without the default_ prefix come from the Metrics plugin (queue, executors, JVM memory); those starting with default_jenkins_builds_ are computed per job by the Prometheus plugin.
  • last_build_result_ordinal: the result of the last build as a number: 0 SUCCESS, 1 UNSTABLE, 2 FAILURE, 3 NOT_BUILT, 4 ABORTED.

The exact names may vary slightly between plugin versions: always check them in your own /prometheus/ before writing queries or alerts.

Prometheus, Grafana and Alertmanager in Docker Compose

flowchart LR
    J["jenkins-controller<br/>/prometheus/"] -->|"scrape every 30 s<br/>user metrics"| P["prometheus<br/>time series<br/>alert rules"]
    P -->|"PromQL queries"| G["grafana<br/>dashboards"]
    P -->|"active alerts"| AM["alertmanager"]
    AM -->|"email"| E["[email protected]"]
    X["External check<br/>(another machine)"] -->|"/login and /healthcheck"| J

Create a monitoring/ directory in ~/tecnoshop-jenkins for the configuration files.

monitoring/prometheus.yml

global:
  scrape_interval: 30s
  evaluation_interval: 30s

rule_files:
  - /etc/prometheus/jenkins-alerts.yml

alerting:
  alertmanagers:
    - static_configs:
        - targets: ["alertmanager:9093"]

scrape_configs:
  - job_name: jenkins
    metrics_path: /prometheus/
    basic_auth:
      username: metrics
      password_file: /etc/prometheus/jenkins-token
    static_configs:
      - targets: ["jenkins-controller:8080"]
  • scrape_interval: 30s: Prometheus requests the metrics every 30 seconds. Build metrics only change every 120 s (the plugin's period); queue, executor and memory metrics change on every request.
  • evaluation_interval: how often it evaluates the alert rules.
  • rule_files: the alerts file, which you will see later.
  • alerting: which Alertmanager receives the alerts that fire.
  • job_name: jenkins: the name of the target group. It will appear as the label job="jenkins" on all of its series.
  • metrics_path: /prometheus/: the path configured in the plugin.
  • basic_auth with password_file: the metrics user and its token, read from a file so that it is not written in the configuration.
  • targets: ["jenkins-controller:8080"]: the controller, by its name on the Compose network.

Save the token in monitoring/jenkins-token (with chmod 600 and listed in .gitignore).

The New Services

Add to docker-compose.yml:

  prometheus:
    image: prom/prometheus:latest      # pin a specific version in production (05-04)
    container_name: prometheus
    restart: unless-stopped
    command:
      - --config.file=/etc/prometheus/prometheus.yml
      - --storage.tsdb.retention.time=30d
    ports:
      - "127.0.0.1:9090:9090"
    volumes:
      - ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
      - ./monitoring/jenkins-alerts.yml:/etc/prometheus/jenkins-alerts.yml:ro
      - ./monitoring/jenkins-token:/etc/prometheus/jenkins-token:ro
      - prometheus_data:/prometheus

  alertmanager:
    image: prom/alertmanager:latest
    container_name: alertmanager
    restart: unless-stopped
    ports:
      - "127.0.0.1:9093:9093"
    volumes:
      - ./monitoring/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro

  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    restart: unless-stopped
    environment:
      GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD}
    ports:
      - "127.0.0.1:3000:3000"
    volumes:
      - ./monitoring/grafana-datasource.yml:/etc/grafana/provisioning/datasources/prometheus.yml:ro
      - grafana_data:/var/lib/grafana

volumes:
  # ... jenkins_home and linux_agent_01 as before ...
  prometheus_data:
    name: prometheus_data
  grafana_data:
    name: grafana_data
  • command: Prometheus startup arguments. --storage.tsdb.retention.time=30d keeps 30 days of data.
  • "127.0.0.1:9090:9090": publishes the port only on your machine. Prometheus, Alertmanager and Grafana must not be left open to the network without authentication or HTTPS.
  • :ro mounts: the configuration is read from the monitoring/ directory in read-only mode; if you change it, restart the service (docker compose restart prometheus).
  • prometheus_data and grafana_data: named volumes so that metrics and dashboards are not lost when the containers are recreated.
  • GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD}: the Grafana admin password comes from the .env from 05-01, just like the agent secret. Add a GRAFANA_ADMIN_PASSWORD= line there with a value of your own.

monitoring/grafana-datasource.yml registers Prometheus as a data source on startup (provisioning):

apiVersion: 1
datasources:
  - name: Prometheus
    type: prometheus
    access: proxy
    url: http://prometheus:9090
    isDefault: true
  • access: proxy: the Grafana server, not your browser, queries Prometheus; that is why the internal name prometheus works.

Start and check:

docker compose up -d prometheus alertmanager grafana

At http://localhost:9090 → Status → Targets (in recent versions, Status → Target health), the jenkins target should show as UP. If it shows DOWN with 401 Unauthorized, check the user, the token and the metrics role.

Grafana Dashboards and PromQL Queries

Go to http://localhost:3000 and sign in as admin with the password from .env. You have two options:

  1. Import a community dashboard: on grafana.com/grafana/dashboards, search for "Jenkins" and pick one based on the Prometheus metrics plugin with recent updates. Copy its ID and, in Grafana, go to Dashboards → New → Import, paste the ID and select the Prometheus data source. It is quick, but check that its queries use the metric names of your version.
  2. Build your own panels, understanding each query. Dashboards → New → New dashboard → Add visualization, data source Prometheus, and write the query in PromQL (Prometheus's query language).

TecnoShop's dashboard, "Jenkins - Health":

Panel PromQL query Visualization
Jenkins reachable up{job="jenkins"} Stat (1 = yes, 0 = no)
Queue length jenkins_queue_size_value Time series
Busy executors (%) 100 * jenkins_executor_in_use_value / jenkins_executor_count_value Gauge
Controller heap (%) 100 * vm_memory_heap_usage Time series
Offline nodes jenkins_node_offline_value Stat
Time in queue (95th percentile, seconds) jenkins_job_queuing_duration{quantile="0.95"} Time series
Jobs whose last build failed default_jenkins_builds_last_build_result_ordinal == 2 Table
Failed builds per job (24 h) sum by (jenkins_job) (increase(default_jenkins_builds_failed_build_count[24h])) Bar chart
Average duration per job (1 h) rate(default_jenkins_builds_duration_milliseconds_summary_sum[1h]) / rate(default_jenkins_builds_duration_milliseconds_summary_count[1h]) / 1000 Time series (seconds)

The less obvious queries explained:

  • up{job="jenkins"}: a metric that Prometheus generates on its own for every target: 1 if the last scrape succeeded. It is the most reliable way to know that Jenkins is responding.
  • 100 * jenkins_executor_in_use_value / jenkins_executor_count_value: divides executors in use by total executors. With the controller at 0 executors, the total is the 2 on linux-agent-01.
  • jenkins_job_queuing_duration{quantile="0.95"}: the Metrics plugin measures how long builds wait in the queue and publishes it as a summary with quantiles; 0.95 is the time below which 95% of recent waits fall.
  • ... == 2: a filter: it only returns the series whose value is 2 (FAILURE). The table will show the jenkins_job label of each job that is red, for example orders-api/main.
  • increase(...[24h]): how much a counter has grown in the last 24 hours; sum by (jenkins_job) groups the result by job.
  • rate(..._sum[1h]) / rate(..._count[1h]): the standard way to compute an average from a summary: total time divided by the number of builds in the last hour. It is divided by 1000 to convert milliseconds to seconds.

Save the dashboard. With an hour of data, you will already be able to see the queue rise when you run orders-api and catalog-web at the same time.

Alerts

A dashboard is only useful if someone looks at it. Alerts notify you when a condition holds for a certain time. TecnoShop defines the rules in Prometheus and sends them by email with Alertmanager.

monitoring/jenkins-alerts.yml

groups:
  - name: jenkins
    rules:
      - alert: JenkinsNotResponding
        expr: up{job="jenkins"} == 0
        for: 5m
        labels:
          severity: critical
        annotations:
          summary: "Prometheus has been unable to read Jenkins metrics for 5 minutes"

      - alert: JenkinsLongQueue
        expr: jenkins_queue_size_value > 5
        for: 15m
        labels:
          severity: warning
        annotations:
          summary: "The Jenkins queue has had {{ $value }} items for 15 minutes"

      - alert: JenkinsHighHeap
        expr: vm_memory_heap_usage > 0.85
        for: 10m
        labels:
          severity: warning
        annotations:
          summary: "The controller heap is at {{ $value | humanizePercentage }}"
  • alert: the name of the alert.
  • expr: the condition in PromQL; the alert is active as long as it returns any result.
  • for: how long the condition must hold before the alert fires. It avoids notifications for passing spikes: a queue of 6 for two minutes is normal; for 15, it is not.
  • labels.severity: a custom label to distinguish levels of urgency in Alertmanager.
  • annotations: the notification text. {{ $value }} inserts the current value; humanizePercentage turns 0.91 into 91%.

monitoring/alertmanager.yml

route:
  receiver: devops-team
  group_by: ["alertname"]
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 4h

receivers:
  - name: devops-team
    email_configs:
      - to: [email protected]
        from: [email protected]
        smarthost: smtp.tecnoshop.local:25
        require_tls: false
  • route: the routing tree; here everything goes to the same receiver.
  • group_by: ["alertname"]: groups alerts with the same name into a single message.
  • group_wait, group_interval, repeat_interval: how long to wait before the first notification, between notifications for a group that changes, and before repeating one that is still active (4 hours: long enough not to flood people, short enough not to be forgotten).
  • email_configs: sending by email through a fictitious TecnoShop SMTP server. In a real environment, use TLS and mail server credentials (Alertmanager also supports Slack, Microsoft Teams and other destinations).

Restart Prometheus and Alertmanager. At http://localhost:9090 → Alerts you will see the three rules in the inactive state. To test JenkinsNotResponding, stop the controller (docker compose stop jenkins-controller): the alert will go to pending and, after 5 minutes, to firing; at http://localhost:9093 it will appear in Alertmanager. Start the controller again.

Grafana can also define alerts on its panels (Alerting → Alert rules). It is convenient if you already work in Grafana; TecnoShop prefers the rules in a versioned file alongside the rest of the configuration.

The Simple Alternative: Monitoring (JavaMelody)

The Monitoring plugin integrates JavaMelody into Jenkins: once installed, http://localhost:8080/monitoring shows charts of memory, CPU, threads, HTTP sessions, interface response times and build durations, and http://localhost:8080/monitoring/nodes does the same for the agents. Only administrators can see it.

Aspect Monitoring (JavaMelody) Prometheus + Grafana
Additional infrastructure None Three more services
Setup Minutes An afternoon
Data In JENKINS_HOME, inside Jenkins Outside Jenkins, with configurable retention
If Jenkins goes down The charts go down with it Data and alerts remain available
Alerts Very limited Full-featured
Correlation with other systems No Yes (agents, host, other applications)

JavaMelody is a good option for a small installation or for diagnosing a one-off memory problem. As soon as Jenkins is a service a team depends on, monitoring must live outside it.

Centralized Logs and OpenTelemetry

Two pieces that round out observability and that we only mention:

  • Centralized logs: sending the controller log (and, if relevant, the Audit Trail log from 05-02) to a platform such as Loki or Elasticsearch lets you search them and keep them outside the container. In Docker this is usually done with the logging driver or with a collector agent.
  • OpenTelemetry plugin: publishes pipeline metrics and traces (each build as a trace with its stages and steps) to an OpenTelemetry-compatible backend. It lets you see in detail where a build's time goes and correlate it with other systems.

Watching the Watcher: External Monitoring

If the server hosting jenkins-controller, Prometheus and Alertmanager goes down, nobody gets notified: all three go down together. You need at least one check from another machine (the corporate monitoring system, an uptime checking service or, at the very least, a cron job on another server):

#!/usr/bin/env bash
# check-jenkins.sh - runs every 5 minutes from another server
URL="https://jenkins.tecnoshop.local/login"
code=$(curl -s -o /dev/null -w '%{http_code}' --max-time 10 "$URL" || echo "000")
if [ "$code" != "200" ]; then
    echo "Jenkins is not responding correctly: HTTP ${code} at ${URL}" \
      | mail -s "ALERT: TecnoShop Jenkins" [email protected]
fi
  • curl -s -o /dev/null -w '%{http_code}': discards the body and writes only the HTTP status code of the response.
  • --max-time 10: if there is no response within 10 seconds, it is considered down. || echo "000" covers the case where curl cannot even connect.
  • /login is a page that responds without authentication: it checks that Jenkins is alive without needing credentials.
  • To also check health (disk, plugins), use the Metrics plugin's /healthcheck with its access key: it responds 500 if any check fails.
  • mail: sends the notification through the system mail; in practice, the corporate monitoring tool will do this better.

That same external check is the natural place to keep an eye on the backup from 05-03: that a jenkins_home-*.tar.gz.gpg file less than 26 hours old exists on the backup server. A backup that stopped running a month ago without anyone knowing is one of the most common failures.

Common Mistakes and Tips

  • Leaving /prometheus/ without authentication: it exposes job names, branches and results to anyone who can reach Jenkins.
  • Publishing Prometheus, Grafana and Alertmanager on every interface: they have no authentication by default (Prometheus and Alertmanager) or a well-known initial password (Grafana). Publish them on 127.0.0.1 or behind the proxy with HTTPS.
  • Copying queries from a community dashboard without checking the metric names: that is usually why panels show up empty.
  • Alerts without for or with thresholds that are too tight: constant notifications that the team learns to ignore.
  • Leaving a forgotten log recorder at FINE or ALL level: it consumes controller resources.
  • Monitoring Jenkins only from the same machine: it does not detect the server itself going down.
  • Tip: every alert should have a written response ("if JenkinsLongQueue fires, check Nodes and Load Statistics first..."). If you do not know what to do when it fires, it probably should not exist.

Exercises

Exercise 1. Set up the complete stack: the Metrics and Prometheus metrics plugins, the metrics user with its role, prometheus.yml, the three services in docker-compose.yml and the "Jenkins - Health" dashboard with at least four of its panels. Run orders-api and catalog-web at the same time and find, in Grafana, the moment when the queue had items in it. What was the maximum and how long did it last?

Exercise 2. Write a fourth alert rule, JenkinsAgentOffline, that fires if any node has been offline for more than 10 minutes, and test it by marking linux-agent-01 as offline from its page. What happens with JenkinsLongQueue if builds pile up in the meantime?

Exercise 3. Diego complains that orders-api "has been slower for the past few days". Describe how you would investigate it with the tools from this lesson, in order, before touching anything.

Solutions

Solution 1. When you run both jobs at the same time, orders-api takes one executor for its whole build and the three catalog-web cells share the other one, so in the Queue length panel you will see a spike of 2 or 3 items for a few minutes (as long as it takes the cells to work through) and busy executors at 100% during that interval. If the panel shows nothing, check in Status → Targets that the target is UP and that the query uses the exact name that appears in your /prometheus/; also remember that the scrape interval is 30 s, so very short spikes may not show up.

Solution 2.

      - alert: JenkinsAgentOffline
        expr: jenkins_node_offline_value > 0
        for: 10m
        labels:
          severity: warning
        annotations:
          summary: "{{ $value }} node(s) have been offline for 10 minutes"

Add it to the jenkins group in jenkins-alerts.yml and restart Prometheus. After you mark the node offline, the alert goes to pending and, after 10 minutes, to firing. If you run builds in the meantime, there is no executor available (the controller has 0), so the queue grows and, if it exceeds 5 items for 15 minutes, JenkinsLongQueue fires too. This is an example of related alerts: Alertmanager groups them by name, but there is only one cause, and the written response for JenkinsLongQueue should start with "check whether any nodes are offline". Bring the node back online when you are done.

Solution 3. (1) In Grafana, the average duration per job panel filtered to orders-api/main: it confirms whether the duration has gone up and since when. (2) Over the same time range, time in queue and busy executors: if the build takes the same time but waits longer in the queue, the problem is capacity, not orders-api. (3) If it is the build itself that takes longer, open two builds in Jenkins, one from before the change and one from after, and compare the duration of each stage in Pipeline Graph View; the console's timestamps() will tell you which step has grown longer. (4) Check the state of linux-agent-01 (disk, swap, response time in Nodes) and the controller heap. (5) Cross-reference the date with the changes: orders-api commits (new tests, new dependencies?), tecnoshop-lib versions and Jenkins or plugin upgrades in the platform repository. Acting only makes sense once you have identified the cause; optimization itself is covered in Optimizing Jenkins Performance.

Conclusion

With this lesson you close module 5, and the TecnoShop installation is now run as a service. You know what to watch (controller, agents, queue, build performance and disk) and with which suggested thresholds; you use the built-in tools (System Information, System Log with log recorders such as git-and-credentials, Load Statistics and the node monitors) for immediate diagnosis; the Metrics plugin provides health checks and the Prometheus metrics plugin publishes the metrics that Prometheus collects, that Grafana turns into dashboards with PromQL queries and that Alertmanager turns into notifications for the team; you know JavaMelody as the simple alternative and why monitoring must live outside Jenkins, with an external check that watches the watcher. Together with the module's earlier lessons, Laura has stopped building on the controller thanks to linux-agent-01, has decided who can do what with roles and has hardened the installation, has encrypted and tested backups, upgrades with a reproducible image and a safe procedure, and can now see the state of all of it on a dashboard. With a solid platform in place, it is time to connect Jenkins to the rest of the team's tools, starting with the one that triggers everything: the code repository. You will do that in Integrating with Version Control Systems.

© Copyright 2026. All rights reserved