Clone the Confluent demo repository using the following command:
git clone https://github.com/confluentinc/cp-demo.git
Make sure to clone this into the root directory where the jmx-monitoring-stacks
is placed.
Once cloned, set the CP_DEMO_HOME
environment variable by running:
export CP_DEMO_HOME=/path/to/cp-demo
Replace /path/to/cp-demo
with the actual path where you have cloned the repository.
Change your directory to the JMX monitoring stack location:
cd jmx-monitoring-stacks/jmxexporter-prometheus-grafana
Execute the following command to start the monitoring stack:
sudo ./start.sh
This will initiate the JMX monitoring stack using Prometheus and Grafana.
You have now successfully set up the Confluent CP demo with JMX monitoring.