Report requests in a status range

Send metrics to a StatsD server only for responses with a status code from 200 to 205 or from 400 to 499. The Policy reports a request when its response status is in 200-205 or 400-499, and skips every other response.

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!