How to get Counts

This guide has been moved to
https://docs.drone.io/enterprise/usage/


You can find the total count of users and the total count of active repositories by visiting the /metrics endpoint in your browser. Please note you must have the system admin role to visit this endpoint .

# HELP drone_repo_count Total number of registered repositories.
# TYPE drone_repo_count gauge
drone_repo_count 54

# HELP drone_user_count Total number of active users.
# TYPE drone_user_count gauge
drone_user_count 24

You can also query the database to get user and repository counts:

select count(*) from users;
select count(*) from repos where repo_active = true;