Docker Compose

If you're app is deployed using docker compose you can add Metlo as a service to capture API traffic data as shown below:

version: "3.9"

services:
  <your-service>:
    ...
  metlo:
    image: metlo/suricata-daemon
    network_mode: "service:<your-service>"
    depends_on:
      - <your-service>
    cap_add:
      - NET_ADMIN
    environment:
      - METLO_ADDR=http://<YOUR_METLO_HOST>:8081
      - METLO_KEY=<YOUR_METLO_API_KEY>

Be sure to set the network_mode to "service:<your-service>" so Metlo can reuse your service's network stack and listen to API traffic.