Skip to main content

Parameters

See plugin common configurations for configuration options available to all plugins.

  • prefer_name

    boolean


    If true, export route/service name instead of their ID in metric tags.

  • batch_max_size

    integer


    default: 1000


    vaild vaule:

    greater than 0


    The number of log entries allowed in one batch. Once reached, the batch will be sent to Datadog agent. Setting this parameter to 1 means immediate processing.

  • inactive_timeout

    integer


    default: 5


    vaild vaule:

    greater than 0


    The maximum time in seconds to wait for new logs before sending the batch to the logging service. The value should be smaller than buffer_duration.

  • buffer_duration

    integer


    default: 60


    vaild vaule:

    greater than 0


    The maximum time in seconds from the earliest entry allowed before sending the batch to the logging service.

  • retry_delay

    integer


    default: 1


    vaild vaule:

    greater or equal to 0


    The time interval in seconds to retry sending the batch to the logging service if the batch was not successfully sent.

  • max_retry_count

    integer


    default: 60


    vaild vaule:

    greater or equal to 0


    The maximum number of unsuccessful retries allowed before dropping the log entries.

Metadata

The plugin has the following metadata.

  • host

    string


    default: 127.0.0.1


    DogStatsD server host address.

  • port

    integer


    default: 8125


    DogStatsD server port.

  • namespace

    string


    default: apisix


    Prefix for all metrics. For example, if the namespace is configured as apisix, you should see the request.counter metric exported as apisix.request.counter to Datadog.

  • constant_tags

    array[string]


    default: [source:apisix]


    Metric tags.

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2025. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation