PE - Configuring Prometheus Exporter Lite
Configuring a secret token (recommended)
Warning
Note that this plugin publicly exposes some sensitive data by default. The metrics page exposes the usernames for who logged in last, who was the last editing pages and so on. We recommend that you enable token protection to make sure the public cannot view usernames.
To configure a secret token:
- Log into your Confluence as Admin.
- Go to Confluence Administration and click Prometheus Exporter Settings.
The Prometheus Exporter Settings page opens. - Generate or create a token. We recommend to use 128 characters.
Use this secret token in the following scrape_configs inside the prometheus.yml configuration file:
prometheus.yml- job_name: 'confluence' scheme: https # change to http if you don't have https metrics_path: '/<your_confluence_context_path>/plugins/servlet/prometheus/metrics' params: token: ['1234567890'] # I'd recommend use 128 symbol length long [A-Za-z0-9] static_configs: - targets: ['myhost:1990'] # Confluence host and port you serve