Calculating cumulative build times

Hi there,

I’m interested in finding out, from a reporting/usage perspective, how much time our self hosted drone installation is busy running builds. We have several repos and each has multiple builds per day.

Has anyone done this before and if so how have you done it? What would be a good starting point? The API?

Thanks!

Drone has export some data by <host>/metrics url for prometheus, maybe can help you https://docs.drone.io/server/metrics/. If it’s not enough for you, you can try to custom metrics.