Prometheus Exporter for Bamboo exposes Bamboo metrics as JVM and issue statistics to Prometheus.
...
- 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 Bamboo so that it collects metrics and pulls it into Prometheus:
Use the following scrape_configs:
Code Block title prometheus.yml scrape_configs: - job_name: 'bamboo' scheme: https #change to http if don't you have https metrics_path: '/<your_bamboo_context_path>/plugins/servlet/prometheus/metrics' static_configs: - targets: ['myhost:1990']
For a complete specification of configuration options, see the Prometheus configuration documentation.
Select Prometheus Exporter for Bamboo endpoint in the Prometheus Status >Targets page where all registered applications are listed, to get the Prometheus metrics.
<<<Update screenshot with BambooBuild any of the available dashboards with the selected metrics.
<<<Update screenshot with Bamboo
...
- Log into your Bamboo as Admin.
- Go to Bamboo Administration > Manage apps, and click Prometheus Exporter Settings.
The Prometheus Exporter Settings page opens. - Generate or create a Token. We recommend to use 128 length symbol.
Use generated or created secret token in the following scrape_configs in the prometheus.yml configuration file:
That's it.Code Block title prometheus.yml - job_name: 'bamboo' scheme: https #change to http if don't you have https metrics_path: '/<your_bamboo_context_path>/plugins/servlet/prometheus/metrics?token=secrettoken' params: token: ['1234567890'] # i'd reccomend use 128 symbol lenght long [A-Za-z0-9] static_configs: - targets: ['myhost:1990']
Prometheus metrics example
...