Lago Configuration
The lago plugin reports gateway usage events to Lago for metered billing with subscription IDs, billable metrics, and custom properties. Configuration covers plugin parameters and plugin metadata.
Parameters
See plugin common configurations for configuration options available to all plugins.
endpoint_addrs
valid value:
one or more HTTP or HTTPS originsLago API origins. One origin is selected randomly for each batch.
endpoint_uri
Lago batch-events API path appended to the selected origin.
token
Lago organization API key sent as a Bearer token. This field is marked for encrypted storage when gateway data encryption is enabled. Protect the plaintext value in declarative files and secret-delivery workflows.
event_transaction_id
Unique event identifier. Supports built-in-variable templates. The plugin reuses the same identifier and timestamp on retries. Lago deduplicates by transaction ID; ClickHouse-backed deployments also include the timestamp in the deduplication key.
event_subscription_id
External Lago subscription ID. Supports built-in-variable templates.
event_code
Code of the Lago billable metric associated with the event.
event_properties
String-valued event properties. Values can contain built-in-variable templates.
ssl_verify
If true, verify the Lago API TLS certificate.
timeout
valid value:
between 1 and 60000 inclusiveLago request timeout in milliseconds.
keepalive
If true, reuse Lago API connections.
keepalive_timeout
valid value:
greater than or equal to 1000Idle keepalive timeout in milliseconds.
keepalive_pool
valid value:
greater than or equal to 1Maximum connections in the keepalive pool.
batch_max_size
valid value:
greater than 0Maximum events in one Lago batch. Lago's batch API defaults to a limit of 100 events, but self-hosted deployments can override the limit.
name
Batch-processor identifier exported in batch-processing metrics.
inactive_timeout
Seconds to wait for new events before sending the batch.
buffer_duration
Maximum seconds from the earliest event before sending the batch.
max_retry_count
Retry attempts after the initial failed delivery.
retry_delay
Seconds between delivery retries.
Plugin Metadata
The following attributes configure shared Lago batch-processing behavior through plugin metadata.
max_pending_entries
Maximum queued events. New events are dropped when the backlog reaches this limit.