Count requests per AI Consumer

Send the number of requests per AI Consumer to a StatsD server. The username identifier puts the name of the AI Consumer in the metric name, for example kong.service.<entity>.user.<username>.request.count.

Prerequisites

Environment variables

  • HOST: The IP address or hostname of the StatsD server to send data to.

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!