Version 1.0.0
Language EN

Metrics

Drone publishes and exposes metrics that can be consumed by Prometheus. Access to the metrics endpoint is restricted and requires an authorization token.

First, create a 32-byte random token:

$ openssl rand -hex 16
  fe8c402a51e6629aa1f43a4234afee81

Then create a machine user:

$ drone user create prometheus --machine --token=fe8c402a51e6629aa1f43a4234afee81

Finally, configure the prometheus scraper:

global:
    scrape_interval: 60s

    scrape_configs:
    - job_name: 'drone'
        bearer_token: fe8c402a51e6629aa1f43a4234afee81

        static_configs:
        - targets: ['domain.com']

Getting Help

Mailing List
Search for information in the mailing list archives, or post a question.
Chat Support
Real-time chat support from maintainers and community members.