Submit your paper : editorIJETjournal@gmail.com Paper Title : Pragmatic Analysis of Custom Jenkins Jobs’ Metrics Using Prometheus and Grafana ISSN : 2395-1303 Year of Publication : 2021 10.29126/23951303/IJET-V7I4P06 MLA Style: -Jayanth G , " Pragmatic Analysis of Custom Jenkins Jobs’ Metrics Using Prometheus and Grafana " Volume 7 - Issue 4 July - August,2021 International Journal of Engineering and Techniques (IJET) ,ISSN:2395-1303 , www.ijetjournal.org APA Style: -Jayanth G, " Pragmatic Analysis of Custom Jenkins Jobs’ Metrics Using Prometheus and Grafana " Volume 7 - Issue 4 July - August,2021 International Journal of Engineering and Techniques (IJET) ,ISSN:2395-1303 , www.ijetjournal.org Abstract - CI/CD, in software development, is the process of continuous integration (CI) and continuous delivery/deployment (CD) of code. By imposing automation in the construction, testing, and deployment of applications, CI/CD facilitates development and operations (DevOps) activities and teams. Prometheus is a popular open-source alerting and monitoring software that allows flexible queries via its query language, PromQL. Grafana is one of the widely used open-source tools that can be hooked up with Prometheus’ time-series database for metric analytics and visualization. This paper explains a comprehensive approach of extracting, creating, and pushing custom parameters associated with Jenkins jobs as metrics to Prometheus using Python language, filtering them using Prometheus Query Language (PromQL), and visualizing them using Grafana dashboards. These metrics can also serve as a purpose in determining high resource-intensive jobs Reference 1. Thoughtworks Incorporation, “Continuous Integration”, Accessed on :May 31, 2021. [Online]. Available: https://www.thoughtworks.com/es/continuous-integration 2. B. Brazil, “Prometheus: Up & Running”, O’Reilly Media, Inc, 2018. 3. N. Sabharwal, P. Pandey. “Working with Prometheus Query Language (PromQL).” In: ‘Monitoring Microservices and Containerized Applications.’ Apress, Berkeley, CA, 2020. https://doi.org/10.1007/978-1-4842- 6216-0_5 4. L. Chen, M. Xian and J. Liu, "Monitoring System of OpenStack Cloud Platform Based on Prometheus", 2020 International Conference on Computer Vision, Image and Deep Learning (CVIDL), 2020, pp. 206-209. 5. M. Shahin, M. Ali Babar and L. Zhu, "Continuous Integration, Delivery and Deployment: A Systematic Review on Approaches, Tools, Challenges and Practices", in IEEE Access, vol. 5, pp. 3909-3943, 2017 6. I. Nurgaliev, E. Karavakis and A. Alberto. “Kibana, Grafana and Zeppelin on Monitoring data”, The European Organization for Nuclear Research (CERN), 2016. 7. V. Armenise, "Continuous Delivery with Jenkins: Jenkins Solutions to Implement Continuous Delivery," 2015 IEEE/ACM 3rd International Workshop on Release Engineering, 2015, pp. 24-27 8. Atlassian Confluence, “Administering Jenkins”, Aug. 2019. Accessed on: June 1, 2021. [Online]. Available: https://wiki.jenkins.io/display/JENKINS/Administering+Je nkins 9. R. Boyett, “Cron Job: A Comprehensive Guide for Beginners 2021”, May 2021. Accessed on: June 1, 2021. [Online]. Available: https://www.hostinger.com/tutorials/cron-job 10. Prometheus Authors, The Linux Foundation, “Getting started”, Prometheus version 2.27. Accessed on: June 1, 2021. [Online]. Available: https://prometheus.io/docs/prometheus/latest/getting_start ed Keywords ——— Continuous Integration, Continuous Delivery/Deployment, DevOps, PromQL, Prometheus, Grafana, Jenkins, cron expression, GitHub. |