/wrp-listener-examples

Examples using wrp-listener.

Primary LanguageGoApache License 2.0Apache-2.0

wrp-listener-examples

Examples using wrp-listener.

By moving these out of the wrp-listener library repository dependencies are greatly simplified.

Testing Locally

Leverage Docker to stand up a local xmidt cluster for validating webhooks.

  1. Clone xmidt deploy repo
git clone https://github.com/xmidt-org/xmidt.git
  1. Start xmidt cluster
cd deploy/docker-compose/
./deploy.sh
  1. Build and Run example inside docker
cd <example test dir>
docker-compose up
  1. Validate webhook is registered by visiting http://localhost:9090/graph?g0.expr=xmidt_caduceus_webhook_list_size_value&g0.tab=1&g0.stacked=0&g0.show_exemplars=0&g0.range_input=1h

  2. Restart the Simulator and watch logs and prometheus http://localhost:9090/graph?g0.expr=xmidt_caduceus_delivery_count&g0.tab=0&g0.stacked=0&g0.show_exemplars=0&g0.range_input=1h