Step – 1: Install Grafana server
Step – 2: Install Jenkins Server
Step – 3: Install prometheus Server?
Jenkins Prometheus Plugin expose an endpoint (default /prometheus) with metrics where a Prometheus Server can scrape.
- https://www.devopsschool.com/blog/install-and-configure-prometheus-server-and-node-exporter-in-rhel/
Step – 4: Install jenkins plugins “Prometheus metrics”
Step – 5: Restart jenkins
Step – 6: Review Prometheus config at http://192.168.1.9:8080/configure but do not change
Step – 7: Validate all the jenkins metrics at http://192.168.1.9:8080/prometheus
Step – 8: Configure Prometheus for scrapping http://192.168.1.9:8080/prometheus
- Edit prometheus.yaml
- add follwing stanza
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from thi
s config.
- job_name: "prometheus"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ["localhost:9090"]
- job_name: jenkins
metrics_path: '/prometheus'
static_configs:
- targets: ['192.168.1.9:8080']
Code language: PHP (php)
Step – 8: Validate prometheus.yml file
$ ./promtool check config prometheus.yml
Step – 9: Restart prometheus services
Step – 10: Validate prometheus jenkins target at http://192.168.1.2:9090/targets?search=
Step – 11: Wait for 1 mins.
Step – 12: Vaidate all jenkins metrics at http://192.168.1.2:9090/graph using search
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals