Phase 4c : Monitoring | Monitor Jenkins Dashboard
Add prometheus metric plugin in jenkins
Apply below changes
We need to add jenkins prometheus path and port in prometheus.yml file.
In the monitoring server, do
cd /etc/prometheus
sudo nano prometheus.yml
Add below configurations in this file
- job_name: "jenkins"
metrics_path: '/prometheus'
static_configs:
- targets: ["jenkinsserver:8080"]
Access metrics thru jenkinsserveipaddress:8080/prometheus
Import Jenkins grafana dashboard
id:9964
This is the jenkins dahsboard looks like
run the build again and check the dashboard.