Skip to end of banner
Go to start of banner

_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 5 Next »

Prometheus Exporter for Bitbucket enables to expose Bitbucket metrics: JVM and application statistics to Prometheus.

The app exposes the following metrics:

  • JVM
  • Application statistics
  • Builds statistics
  • Maximum number of users
  • Number of days before maintenance expiry
  • Push, clone and fork counters
  • Pull requests counters
  • Projects, repositories and pull requests count
  • Login statistics
Cluster MetricDescription
jira_total_cluster_nodes_gaugeall others starting with 7.3.0

jira_active_cluster_nodes_gauge


jira_cluster_heartbeat_counter

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/event/cluster/HeartbeatEvent.html

jira_cluster_cache_replication_resumed_counter

starting with Jira v7.7.1 https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/event/cluster/CacheReplicationResumedEvent.html

jira_cluster_cache_replication_stopped_counter

starting with Jira v7.7.1 https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/event/cluster/CacheReplicationStoppedEvent.html

Users MetricDescription
jira_all_users_gauge
jira_active_users_gauge
jira_allowed_users_gauge
Attachment Disk Space MetricDescription
jira_total_attachment_size_gauge
JVM Metric


private final Gauge maintenanceExpiryDaysGauge = Gauge.build()
.name("bitbucket_maintenance_expiry_days_gauge")
.help("Maintenance Expiry Days Gauge")
.create();
private final Gauge licenseExpiryDaysGauge = Gauge.build()
.name("bitbucket_license_expiry_days_gauge")
.help("License Expiry Days Gauge")
.create();
private final Gauge allowedUsersGauge = Gauge.build()
.name("bitbucket_allowed_users_gauge")
.help("Maximum Allowed Users")
.create();
private final Gauge activeUsersGauge = Gauge.build()
.name("bitbucket_active_users_gauge")
.help("Active Users Gauge")
.create();


See the following examples for JVM Threads, Memory Usage  and Commits Count statistics:

  1. JVM Threads



  2. Memory Usage




  3. Commits Count


See also

_Prometheus Exporters - Configuring Prometheus Exporters

  • No labels