PE - Using Prometheus Exporter for Bitbucket
Once you configure your Prometheus Exporter app, you can expose the following metrics into Prometheus:
- JVM metrics
- User Metrics
- License metrics
- Login / Logout statistics
- Push statistics
- Clone statistics
- Forks statistics
- Pull requests
- Plugins statistics
- Other statistics
Metrics description
Metrics | Type | Description |
---|---|---|
JVM Metrics | ||
JVM metrics exposed with the Confluence exporter are the same as for Jira, see detailed description here. See JVM examples below. | ||
User Metrics | ||
bitbucket_allowed_users | Gauge | Maximum allowed users. |
bitbucket_active_users | Gauge | Active users gauge. |
bitbucket_maintenance_expiry_days | Gauge | Maintenance Expiry Days Gauge |
bitbucket_license_expiry_days | Gauge | License Expiry Days Gauge |
bitbucket_allowed_users | Gauge | Maximum Allowed Users |
bitbucket_active_users | Gauge | Active Users Gauge |
bitbucket_success_auth | Counter | User Success Auth Count |
bitbucket_failed_auth | Counter | User Failed Auth Count |
bitbucket_repo_push | Counter | Repository Pushes Count |
bitbucket_repo_clone | Counter | Repository Clones Count |
bitbucket_repo_fork | Counter | Repository Forks Count |
bitbucket_pull_request_open | Counter | Number of opened pull requests |
bitbucket_pull_request_merge | Counter | Merged Pull Requests Count |
bitbucket_pull_request_decline | Counter | Declined Pull Requests Count |
bitbucket_plugin_installed | Counter | Plugin Installed Count |
bitbucket_plugin_uninstalled | Counter | Plugin Uninstalled Count |
bitbucket_plugin_enabled | Counter | Plugin Enabled Count |
bitbucket_plugin_disabled | Counter | Plugin Disabled Count |
bitbucket_total_projects | Gauge | Total Projects Gauge |
bitbucket_total_repositories | Gauge | Total Repositories Gauge |
bitbucket_total_pull_requests | Gauge | Total Pull Requests Gauge |
License metrics | ||
bitbucket_maintenance_expiry_days_gauge | Gauge | Maintenance Expiry Days Gauge |
bitbucket_license_expiry_days_gauge | Gauge | License Expiry Days Gauge |
bitbucket_allowed_users_gauge | Gauge | Maximum Allowed Users |
bitbucket_active_users_gauge | Gauge | Active Users Gauge |
Login / Logout statistics | ||
bitbucket_success_auth_count | Counter | User Success Auth Count |
bitbucket_failed_auth_count | Counter | User Failed Auth Count |
Push statistics | ||
bitbucket_repo_push_count | Counter | Repository Pushes Count. See example below. |
Clone statistics | ||
bitbucket_repo_clone_count | Counter | Repository Clones Count |
Forks statistics | ||
bitbucket_repo_fork_count | Counter | Repository Forks Count |
Pull requests | ||
bitbucket_pull_request_open | Counter | Opened Pull Requests Count |
bitbucket_pull_request_merge | Counter | Merged Pull Requests Count |
bitbucket_pull_request_decline | Counter | Declined Pull Requests Count |
Plugins statistics | ||
bitbucket_plugin_installed | Counter | Number of installed apps |
bitbucket_plugin_uninstalled | Counter | Number of uninstalled apps |
bitbucket_plugin_enabled | Counter | Number of enabled apps |
bitbucket_plugin_disabled | Counter | Number of disabled apps |
Other statistics | ||
bitbucket_total_projects_gauge | Gauge | Total Projects Gauge |
bitbucket_total_repositories_gauge | Gauge | Total Repositories Gauge |
bitbucket_total_pull_requests_gauge | Gauge | Total Pull Requests Gauge |