---
title: "PE - Using Prometheus Exporter for Bitbucket"
canonical: "https://support.appfire.com/space/PE/14680133/PE%20-%20Using%20Prometheus%20Exporter%20for%20Bitbucket"
format: markdown
---
> Macro (aura-html)

> ℹ️ Starting with version 3.0.0-jira8 for Prometheus Exporter PRO, you are able to see and manage collected metrics in the app configuration.

<span style="color: #333333">Go to </span>**<span style="color: #333333">Administration</span>**<span style="color: #333333"> → </span>**<span style="color: #333333">Manage apps</span>**<span style="color: #333333"> → </span>**<span style="color: #333333">Prometheus Exporter</span>**<span style="color: #333333"> → </span>**<span style="color: #333333">Metrics </span>**<span style="color: #333333">and select which metrics must be collected and how (in real-time or by a scheduled job), see the last execution date and how long metrics were executed.</span>

![image](media://34cd28da-da10-42e4-b419-f13c6bbaad03)

Once you [configure your Prometheus Exporter app](https://appfire.atlassian.net/wiki/spaces/PE/pages/14680766/PE+-+General+Configuration+Prometheus+Exporter+for+Bitbucket), you can expose the following metrics into Prometheus:

- [JVM metrics](#PE-UsingPrometheusExporterforBitbucket-JVMMetrics)
- [User Metrics](#PE-UsingPrometheusExporterforBitbucket-UserMetrics)
- [License metrics](#PE-UsingPrometheusExporterforBitbucket-Licensemetrics)
- [Login / Logout statistics](#PE-UsingPrometheusExporterforBitbucket-Login/Logoutstatistics)
- [Push statistics](https://appfire.atlassian.net/wiki/spaces/PE/pages/14680133)
- [Clone statistics](#PE-UsingPrometheusExporterforBitbucket-Clonestatistics)
- [Forks statistics](#PE-UsingPrometheusExporterforBitbucket-Forksstatistics)
- [Pull requests](#PE-UsingPrometheusExporterforBitbucket-Pullrequests)
- [ ](https://appfire.atlassian.net/wiki/spaces/PE/pages/14680133)[Plugins statistics](https://appfire.atlassian.net/wiki/spaces/PE/pages/14680133)
- [Other statistics](https://appfire.atlassian.net/wiki/spaces/PE/pages/14680133)


### Metrics description 

| **Metrics** | **Type** | **Description** |
| --- | --- | --- |
| #### **JVM Metrics** |
| JVM metrics exposed with the Confluence exporter are the same as for Jira, see detailed description [here](https://appfire.atlassian.net/wiki/spaces/PE/pages/14680629/PE+-+Using+Prometheus+Exporter+for+Jira#PE-UsingPrometheusExporterforJira-JVMMetrics-seeexamplesbelow).<br>See [JVM examples](#PE-UsingPrometheusExporterforBitbucket-JVMmetricsexamples) below. |
| #### **User Metrics** |
| bitbucket_allowed_users | <span style="color: #333333">Gauge</span> | <span style="color: #333333">Maximum allowed users. </span>  
<span style="color: #333333">This metric is available for Bitbucket versions 1.0.11 and above.</span> |
| <span style="color: #333333">bitbucket_active_users</span> | <span style="color: #333333">Gauge</span> | <span style="color: #333333">Active users gauge. </span>  
<span style="color: #333333">This metric is available for Bitbucket versions 1.0.11 and above.</span> |
| <span style="color: #333333">bitbucket_maintenance_expiry_days</span> | <span style="color: #333333">Gauge</span> | <span style="color: #333333">Maintenance Expiry Days Gauge</span> |
| <span style="color: #333333">bitbucket_license_expiry_days</span> | <span style="color: #333333">Gauge</span> | <span style="color: #333333">License Expiry Days Gauge</span> |
| <span style="color: #333333">bitbucket_allowed_users</span> | <span style="color: #333333">Gauge</span> | <span style="color: #333333">Maximum Allowed Users</span> |
| <span style="color: #333333">bitbucket_active_users</span> | <span style="color: #333333">Gauge</span> | <span style="color: #333333">Active Users Gauge</span> |
| <span style="color: #333333">bitbucket_success_auth</span> | <span style="color: #333333">Counter</span> | <span style="color: #333333">User Success Auth Count</span> |
| <span style="color: #333333">bitbucket_failed_auth</span> | <span style="color: #333333">Counter</span> | <span style="color: #333333">User Failed Auth Count</span> |
| <span style="color: #333333">bitbucket_repo_push</span> | <span style="color: #333333">Counter</span> | <span style="color: #333333">Repository Pushes Count</span> |
| <span style="color: #333333">bitbucket_repo_clone</span> | <span style="color: #333333">Counter</span> | <span style="color: #333333">Repository Clones Count</span> |
| <span style="color: #333333">bitbucket_repo_fork</span> | <span style="color: #333333">Counter</span> | <span style="color: #333333">Repository Forks Count</span> |
| <span style="color: #333333">bitbucket_pull_request_open</span> | <span style="color: #333333">Counter</span> | <span style="color: #333333">Number of opened pull requests</span> |
| <span style="color: #333333">bitbucket_pull_request_merge</span> | <span style="color: #333333">Counter</span> | <span style="color: #333333">Merged Pull Requests Count</span> |
| <span style="color: #333333">bitbucket_pull_request_decline</span> | <span style="color: #24292e">Counter</span> | <span style="color: #333333">Declined Pull Requests Count</span> |
| <span style="color: #333333">bitbucket_plugin_installed</span> | <span style="color: #24292e">Counter</span> | <span style="color: #333333">Plugin Installed Count</span> |
| <span style="color: #333333">bitbucket_plugin_uninstalled</span> | <span style="color: #24292e">Counter</span> | <span style="color: #333333">Plugin Uninstalled Count</span> |
| <span style="color: #333333">bitbucket_plugin_enabled</span> | <span style="color: #24292e">Counter</span> | <span style="color: #333333">Plugin Enabled Count</span> |
| <span style="color: #333333">bitbucket_plugin_disabled</span> | <span style="color: #24292e">Counter</span> | <span style="color: #333333">Plugin Disabled Count</span> |
| <span style="color: #333333">bitbucket_total_projects</span> | Gauge | <span style="color: #333333">Total Projects Gauge</span> |
| <span style="color: #333333">bitbucket_total_repositories</span> | Gauge | <span style="color: #333333">Total Repositories Gauge</span> |
| <span style="color: #333333">bitbucket_total_pull_requests</span> | Gauge | <span style="color: #333333">Total Pull Requests Gauge</span> |
| #### **License metrics** |
| <span style="color: #333333">bitbucket_maintenance_expiry_days_gauge</span> | <span style="color: #24292e">Gauge</span> | <span style="color: #333333">Maintenance Expiry Days Gauge</span> |
| <span style="color: #333333">bitbucket_license_expiry_days_gauge</span> | <span style="color: #24292e">Gauge</span> | <span style="color: #333333">License Expiry Days Gauge</span> |
| <span style="color: #333333">bitbucket_allowed_users_gauge</span> | <span style="color: #24292e">Gauge</span> | <span style="color: #333333">Maximum Allowed Users</span> |
| <span style="color: #333333">bitbucket_active_users_gauge</span> | <span style="color: #24292e">Gauge</span> | <span style="color: #333333">Active Users Gauge</span> |
| #### **Login / Logout statistics** |
| <span style="color: #333333">bitbucket_success_auth_count</span> | Counter | <span style="color: #333333">User Success Auth Count</span> |
| <span style="color: #333333">bitbucket_failed_auth_count</span> | Counter | <span style="color: #333333">User Failed Auth Count</span> |
| #### **Push statistics** |
| <span style="color: #333333">bitbucket_repo_push_count</span> | Counter | <span style="color: #333333">Repository Pushes Count. See </span>[<span style="color: #333333">example</span>](#PE-UsingPrometheusExporterforBitbucket-Pushstatisticsexample)<span style="color: #333333"> below.</span> |
| #### **Clone statistics** |
| <span style="color: #333333">bitbucket_repo_clone_count</span> | Counter | <span style="color: #333333">Repository Clones Count</span> |
| #### **Forks statistics** |
| bitbucket_repo_fork_count | Counter | <span style="color: #333333">Repository Forks Count</span> |
| #### **Pull requests** |
| <span style="color: #333333">bitbucket_pull_request_open</span> | Counter | <span style="color: #333333">Opened Pull Requests Count</span> |
| <span style="color: #333333">bitbucket_pull_request_merge</span> | Counter | <span style="color: #333333">Merged Pull Requests Count</span> |
| <span style="color: #333333">bitbucket_pull_request_decline</span> | Counter | <span style="color: #333333">Declined Pull Requests Count</span> |
| #### **Plugins statistics** |
| <span style="color: #333333">bitbucket_plugin_installed</span> | <span style="color: #24292e">Counter</span> | Number of installed apps |
| <span style="color: #333333">bitbucket_plugin_uninstalled</span> | <span style="color: #24292e">Counter</span> | Number of uninstalled apps |
| <span style="color: #333333">bitbucket_plugin_enabled</span> | <span style="color: #24292e">Counter</span> | Number of enabled apps |
| <span style="color: #333333">bitbucket_plugin_disabled</span> | <span style="color: #24292e">Counter</span> | Number of disabled apps |
| #### **Other statistics** |
| <span style="color: #333333">bitbucket_total_projects_gauge</span> | <span style="color: #24292e">Gauge</span> | <span style="color: #333333">Total Projects Gauge</span> |
| <span style="color: #333333">bitbucket_total_repositories_gauge</span> | <span style="color: #24292e">Gauge</span> | <span style="color: #333333">Total Repositories Gauge</span> |
| <span style="color: #333333">bitbucket_total_pull_requests_gauge</span> | <span style="color: #24292e">Gauge</span> | <span style="color: #333333">Total Pull Requests Gauge</span> |

### JVM metrics examples

<details>
<summary>JVM threads</summary>

![image]()
</details>

<details>
<summary>Memory usage</summary>

![image]()
</details>

### Push statistics example

<details>
<summary>Commits count</summary>

![image]()
</details>

  


## See also

[Configuring Prometheus Exporter for Bitbucket](https://appfire.atlassian.net/wiki/spaces/PE/pages/14680766)