Skip to end of banner
Go to start of banner

PE - Using Prometheus Exporter for Bitbucket

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Content in development.


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

  • JVM metrics
    • Application statistics
    • Builds statistics
    • Number of days before maintenance expiry
    • Push, clone and fork counters
    • Pull requests counters
    • Projects, repositories and pull requests count
  • User Metrics
    • Maximum number of users
    • Login statistics


MetricsTypeDescription
JVM Metrics

bitbucket_maintenance_expiry_days

Gauge

Maintenance expiry days gauge. This metric is available for Bitbucket versions 1.0.11 and above.

bitbucket_license_expiry_days

Gauge

License expiry days gauge. This metric is available for Bitbucket versions 1.0.11 and above.

Users Metrics
bitbucket_allowed_usersGauge

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

bitbucket_active_usersGauge

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







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_openCounterOpened Pull Requests Count
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:

name

help

type

bitbucket_maintenance_expiry_days_gauge
Maintenance Expiry Days Gauge
Gauge
bitbucket_license_expiry_days_gaugeLicense Expiry Days GaugeGauge
bitbucket_allowed_users_gaugeMaximum Allowed UsersGauge
bitbucket_active_users_gaugeActive Users GaugeGauge


Login/Logout:

namehelplabelNamestype
bitbucket_success_auth_countUser Success Auth Count
Counter
bitbucket_failed_auth_countUser Failed Auth CountusernameCounter

Pushes:

namehelplabelNamestype
bitbucket_repo_push_count
Repository Pushes Count
project, repository, usernameCounter

Clones:

namehelplabelNamestype
bitbucket_repo_clone_countRepository Clones Countproject, repository, usernameCounter

Forks:

namehelplabelNamestype
bitbucket_repo_fork_count
Repository Forks Count
project, repository, usernameCounter

Pull requests:

namehelplabelNamestype
bitbucket_pull_request_openOpened Pull Requests Countproject, repositoryCounter
bitbucket_pull_request_mergeMerged Pull Requests Countproject, repositoryCounter
bitbucket_pull_request_declineDeclined Pull Requests Countproject, repositoryCounter

Plugin:

namehelplabelNamestype
bitbucket_plugin_installed
Plugin Installed Count
pluginKeyCounter
bitbucket_plugin_uninstalledPlugin Uninstalled CountpluginKeyCounter
bitbucket_plugin_enabledPlugin Enabled CountpluginKeyCounter
bitbucket_plugin_disabledPlugin Disabled CountpluginKeyCounter


Scheduled:

namehelptype
bitbucket_total_projects_gaugeTotal Projects GaugeGauge
bitbucket_total_repositories_gaugeTotal Repositories GaugeGauge
bitbucket_total_pull_requests_gaugeTotal Pull Requests GaugeGauge


JVM metrics examples

 JVM threads

 Memory usage

 Commits count



See also

Configuring Prometheus Exporter for Bitbucket

  • No labels