Log request count

Configure the plugin to log the request_count metric and identify the Consumers using the consumerid.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: datadog
    config:
      host: 127.0.0.1
      port: 8125
      flush_timeout: 2
      retry_count: 10
      metrics:
      - name: request_count
        stat_type: counter
        consumer_identifier: consumer_id
        sample_rate: 1
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!