Visualising build performance in Grafana


In order for my team to improve the our build process in a continuous improvement initiative we would like to be able to visualize data such as (build time, number of failures, etc…) in a prometheus instance and vizualize them with grafana.

I would like to know if anyone her has had any experience with that and share it.

My colleague starting to write a script to gather the build execution time data, anybody her knows how to collect the execution time data beside a computation based timestamp at start and end of a build?