Jenkins Dashboard with Grafana and Prometheus

1.Go to “manage Jenkins” then “manage plugins” and install “ Prometheus metrics plugin”

This plugin will expose an endpoint (default /prometheus) with metrics where a Prometheus Server can scrape data.

jenkins_dashboard_02

2.Configure Prometheus to scrape metrics from Jenkins

1
2
3
4
- job_name: ‘jenkins’
metrics_path: /prometheus
static_configs:
- targets: [‘Jenkins_Host:PORT’]

you can go to your prometheus ,find some metrics to dispaly.

jenkins_dashboard_01

3.Create a grafana Dashboard

dashboard link : https://grafana.com/dashboards/9964

then go to the grafana website import json file :
jenkins_dashboard_03

you can search in the grafana dashboard (https://grafana.com/dashboards)

4.Customize your dashboard

example:
jenkins_dashboard_04

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~