Enable StatsD metrics

Log requests in a status range to a StatsD server.

Environment variables

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

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: statsd
    config:
      host: ${{ env "DECK_HOST" }}
      port: 8125
      allow_status_codes:
      - 200-205
      - 400-499
      flush_timeout: 2
      retry_count: 10
Copied to clipboard!

Did this doc help?

Something wrong?

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!