Your question is very broad, indicating to me that you don't know exactly what you are trying to monitor. Because "traffic" can mean so many things. I don't know your network topology. Are the two switches identical devices, same manufacturer & model? Are they managed or unmanaged? Any VLANs? Are they handling Layer 2 & 3 (broadcast domains in addition to IP routing) or just Layer 2? Two very different, albeit supplemental, beasts. Sometimes people confuse routers with switches because, well, it's confusing and most enterprise and even basic managed switches can perform the role of a Layer 3 router in addition to Layer 2 broadcast domains, usually configured as VLANs.
So take a step back and figure out what you are trying to monitor. If you are trying to monitor Layer 2 (MAC address to IP address resolution via broadcast domains & ARP) between two managed switches linked together, then you can leverage LLDP or CDP (deprecated) or examine the arp tables directly on the switch. Or if the managed switch supports sflow/netflow send the flows to a collector like ntopng or Solar Winds or Scrutinizer. If you are trying to monitor Layer 3 traffic between switches acting as routers, you can use Layer 3 tools such as iftop, ntop, or insert a tap or utilize a mirrored port to send traffic to a device serving as a flow generator, or in lieu of a flow generator you can simply send the traffic as tapped or mirrored to ntopng, which will gobble up the traffic and give you real time Layer 3 information. I use Raspberry Pi 3+ running Raspbian and ntopng hanging off a mirrored (aka "span" port) to gain real time insight.