PE - Configuring Prometheus Exporter for Bitbucket

Prometheus Exporter for Bitbucket exposes Bitbucket metrics as JVM and application statistics to Prometheus.

Configuring Prometheus Exporter for Bitbucket

When you download the Prometheus installation package you can see a sample configuration in the prometheus.yml file.
There are three blocks of configuration in this file: global, rule_files, and scrape_configs:

  • Global controls the Prometheus server's global configuration.
  • Rule_files specifies the location of any rules that you want the Prometheus server to load.
  • Scrape_configs controls what resources Prometheus monitors.

 To enable Prometheus Exporter for Bitbucket so that it collects metrics and pulls it into Prometheus

  1. Use the following scrape_configs:

    prometheus.yml
    scrape_configs:
      - job_name: 'bitbucket'
        scheme: https #change to http if don't you have https
        metrics_path: '/<your_bitbucket_context_path>/plugins/servlet/prometheus/metrics'
        static_configs:
          - targets: ['myhost:1990']

    For a complete specification of configuration options, see the Prometheus configuration documentation.


  2. On the Prometheus Status >Targets page, select the Prometheus Exporter for Bitbucket endpoint to get the Prometheus metrics (see example below).

  3. Build any of the available dashboards with the selected metrics.


You can find more information about Prometheus Exporter for Bitbucket Pro here.

You can find more information about Prometheus Exporter for Bitbucket Lite here.

See also

Using Prometheus Exporter for Bitbucket

PE - Configuring Prometheus Exporter for Data Center