Drone publishes and exposes metrics that can be consumed by Prometheus at the standard
/metrics endpoint. Access to the metrics endpoint is restricted and requires an authorization token.
- Create a 32-byte random token:
$ openssl rand -hex 16
- Create a machine user:
$ drone user add prometheus --admin --machine \
- Configure the prometheus scraper:
- job_name: 'drone'
- targets: ['domain.com']
Drone collects performance metrics exposed by the Go runtime, including memory, compute, garbage collection and more. These default metrics are augmented with the following Drone metrics:
total number of builds executed by the system.
total number of user accounts.
total number of activated repositories.
total number of pending builds.
total number of pending jobs. A single build can have one or many jobs, where a job represents a single pipeline in a multi-pipeline yaml.
total number of running builds.
total number of running jobs. A single build can have one or many jobs, where a job represents a single pipeline in a multi-pipeline yaml.
Drone collects a limited set of metrics by design. We are not currently accepting proposals to collect additional metrics in Drone core, however, we do provide a starter project that you can use to create your own custom metrics provider to gather additional metrics.