Configuring Prometheus to scrape the Solr exporter results

In order for Prometheus to know about the solr-exporter, the listen address must be added to prometheus.yml, as in this example:

scrape_configs:
  - job_name: 'solr'
    static_configs:
      - targets: ['localhost:9854']

If you already have a section for scrape_configs, you can add the job_name and other values in the same section. When you apply the settings to Prometheus, it will start to pull Solr’s metrics from solr-exporter.