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:

  1. Log into your Confluence as Admin.
  2. Go to Confluence Administration and click Prometheus Exporter Settings
    The Prometheus Exporter Settings page opens. 
  3. Generate or create a tokenWe recommend to use 128 characters.

     

  4. 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