You can track per-consumer API usage without modifying your upstream services by using the Metering & Billing plugin. The plugin emits a CloudEvent for every API request that passes through Kong Gateway, using the authenticated Consumer as the billable subject.
In this guide, you’ll:
- Create a Consumer with a Key Auth credential
- Configure Key Authentication on the example Service
- Configure the Metering & Billing plugin to emit usage events to Konnect
- Verify that usage events appear in the Konnect UI