Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Once you configure your Prometheus Exporter app, you can expose the following metrics into Prometheus:


Metrics description 

MetricsTypeDescription

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_
maintenance
allowed_
expiry_days
usersGauge
Maintenance expiry days gauge.

Maximum allowed users.
This metric is available for Bitbucket versions 1.0.11 and above.

bitbucket_
license
active_
expiry_days
usersGauge
License expiry days

Active users gauge.
This metric is available for Bitbucket versions 1.0.11 and above.

Users Metrics

bitbucket_maintenance_expiry_daysGaugeMaintenance Expiry Days Gauge
bitbucket_license_expiry_daysGaugeLicense Expiry Days Gauge
bitbucket_allowed_usersGaugeMaximum Allowed Users
bitbucket_active_usersGaugeActive Users Gauge
bitbucket_success_authCounterUser Success Auth Count
bitbucket_failed_authCounterUser Failed Auth Count
bitbucket_repo_pushCounterRepository Pushes Count
bitbucket_repo_cloneCounterRepository Clones Count
bitbucket_repo_forkCounterRepository Forks Count
bitbucket_pull_request_openCounterNumber of opened pull requests
bitbucket_pull_request_mergeCounterMerged Pull Requests Count
bitbucket_pull_request_declineCounterDeclined Pull Requests Count
bitbucket_plugin_installedCounterPlugin Installed Count
bitbucket_plugin_uninstalledCounterPlugin Uninstalled Count
bitbucket_plugin_enabledCounterPlugin Enabled Count
bitbucket_plugin_disabledCounterPlugin Disabled Count
bitbucket_total_projectsGaugeTotal Projects Gauge
bitbucket_total_repositoriesGaugeTotal Repositories Gauge
bitbucket_total_pull_requestsGaugeTotal Pull Requests Gauge

License metrics

bitbucket_maintenance_expiry_days_gaugeGaugeMaintenance Expiry Days Gauge
bitbucket_license_expiry_days_gaugeGaugeLicense Expiry Days Gauge
bitbucket_allowed
users. This metric is available for Bitbucket versions 1.0.11 and above.
_users_gaugeGaugeMaximum Allowed Users
bitbucket_active_users_gaugeGaugeActive
users gauge. This metric is available for Bitbucket versions 1.0.11 and above.

...

Users Gauge

Login / Logout statistics

bitbucket_success_auth_countCounterUser Success Auth Count
bitbucket_failed_auth_countCounterUser Failed Auth Count

Push statistics

bitbucket_repo_push_countCounterRepository Pushes Count. See example below.

Clone statistics

bitbucket_repo_clone_countCounterRepository Clones Count

Forks statistics

bitbucket_repo_fork_countCounterRepository Forks Count

Pull requests

bitbucket_pull_request_openCounterOpened Pull Requests Count
bitbucket_pull_request_mergeCounterMerged Pull Requests Count
bitbucket_pull_request_declineCounterDeclined Pull Requests Count

Plugins statistics

bitbucket_plugin_installedCounterNumber of installed apps
bitbucket_plugin_uninstalledCounterNumber of uninstalled apps
bitbucket_plugin_enabledCounterNumber of enabled apps
bitbucket_plugin_disabledCounterNumber of disabled apps

Other statistics

bitbucket_total_projects_gaugeGaugeTotal Projects Gauge
bitbucket_total_repositories_gaugeGaugeTotal Repositories Gauge
bitbucket_total_pull_requests_gaugeGaugeTotal Pull Requests Gauge

JVM metrics examples

Expand
titleExample - JVM threads example


Expand
titleExample - Memory usage example


Push statistics example

Expand
titleExample - Commits count example



See also

PE - Configuring Prometheus Exporter for Bitbucket