To configure, follow the steps given below:
-
Open prometheus configuration file under prometheus deployed directory. (Default config file is prometheus.yml)
-
Under the scrape configs, add the job and exporter as shown below: (To know more about scrape configuration, click here.)

-
Now restart Prometheus server.
-
Query some tomcat metrics to verify if Prometheus can scrape metrics through the exporter.