> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitor Inter Zone Traffic

> Monitor AutoMQ's inter-zone traffic with tools like iftop on Linux and AWS CloudWatch, optimizing transfers in a scalable, Kafka-compatible cloud service.

After setting up Inter-Zone traffic optimization, users can track local network traffic to pinpoint actual Inter-Zone transfers by correlating with the accessed brokers.

## Command Tool for Monitoring Cross-AZ Traffic

1. Monitor network traffic: On Linux, you can use `iftop` to view the inbound and outbound traffic between your machine and other IPs. The command is as follows:

```bash theme={null}

iftop  -t -s 60 -L 100 -n

```

2. Identify node availability zones: Query the cluster nodes of AutoMQ and the zones to which the nodes belong. The command is as follows:

```bash theme={null}
./bin/kafka-broker-api-versions.sh --bootstrap-server $bootstrap_server | grep id

```

Match both outputs to see if Inter-Zone traffic is generated.

## Other

If your application is deployed on AWS, you can also monitor cross-zone traffic using CloudWatch's [Network Flow Monitor](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor.html) feature.
