ngrok

How to leverage ngrok for testing WarpStream Agents running locally.

ngrokarrow-up-right is a useful tool to enable services running in the cloud to connect to WarpStream Agents running locally for development purposes.

Install ngrok

Follow the ngrok installation instructionsarrow-up-right.

Run ngrok locally

Run ngrok tcp 9092

Run the WarpStream Agent

Run the following command:

Note that the values of WARPSTREAM_DISCOVERY_KAFKA_HOSTNAME_OVERRIDE and WARPSTREAM_DISCOVERY_KAFKA_PORT_OVERRIDE need to match the address and port from the "Forwarding" section of the previous step.

Confirm Connectivity

Run the following command:

Note that the value of -bootstrap-host and -bootstrap-port must match the values from the "Forwarding" section of the "Run ngrok locally" step.

If everything is working correctly, you should see output like this:

Last updated

Was this helpful?