- Download and install Prometheus.
<PROMETHEUS_HOME>/prometheus.ymlfile. Add a scrape config as to this file as shown below. The port number and the endpoint name should be as specified below.
Code Block language xml
scrape_configs: - job_name: "esb_stats" static_configs: - targets: ['localhost:90909191'] metrics_path: "metric-service/metrics"
- Save the configuration file.
- To start the Prometheus server, navigate to the
<PROMETHEUS_HOME>and execute the start-up script located there.
You may also visit following url in Prometheus server to plot the graphs.