Global options reference
This page documents global configuration options that apply to Vector as a whole, such as data directories, timezone settings, logging configuration, and more.
For other top-level configuration options, see:
- Pipeline Components - Configure sources, transforms, sinks, and enrichment tables
- API - Configure Vector's observability API
- Schema - Configure Vector's internal schema system
- Secrets - Configure secrets management
acknowledgements
common optional objectControls how acknowledgements are handled for all sinks by default.
See End-to-end Acknowledgements for more information on how Vector handles event acknowledgement.
acknowledgements.enabled
optional boolControls whether or not end-to-end acknowledgements are enabled.
When enabled for a sink, any source that supports end-to-end acknowledgements that is connected to that sink waits for events to be acknowledged by all connected sinks before acknowledging them at the source.
Enabling or disabling acknowledgements at the sink level takes precedence over any global
acknowledgements configuration.
buffer_utilization_ewma_half_life_seconds
optional floatThe half-life, in seconds, for the exponential weighted moving average (EWMA) of source and transform buffer utilization metrics.
This controls how quickly the *_buffer_utilization_mean gauges respond to new
observations. Longer half-lives retain more of the previous value, leading to slower
adjustments.
- Lower values (< 1): Metrics update quickly but may be volatile
- Default (5): Balanced between responsiveness and stability
- Higher values (> 5): Smooth, stable metrics that update slowly
Adjust based on whether you need fast detection of buffer issues (lower) or want to see sustained trends without noise (higher).
Must be greater than 0.
data_dir
optional stringThe directory used for persisting Vector state data.
This is the directory where Vector will store any state data, such as disk buffers, file checkpoints, and more.
Vector must have write permissions to this directory.
/var/lib/vector/expire_metrics
optional objectIf set, Vector will configure the internal metrics system to automatically remove all metrics that have not been updated in the given time.
If set to a negative value expiration is disabled.
Warning
expire_metrics_secs instead.expire_metrics.nsecs
common optional uintexpire_metrics.secs
common optional uintexpire_metrics_per_metric_set
optional [object]expire_metrics_secs.expire_metrics_per_metric_set.expire_secs
required floatThe amount of time, in seconds, that internal metrics will persist after having not been updated before they expire and are removed.
Set this to a value larger than your internal_metrics scrape interval (default 5 minutes)
so that metrics live long enough to be emitted and captured.
expire_metrics_per_metric_set.labels
optional objectexpire_metrics_per_metric_set.labels.matchers
required [object]expire_metrics_per_metric_set.labels.type
required string enum| Option | Description |
|---|---|
all | Checks that all of the provided matchers can be applied to given metric. |
any | Checks that any of the provided matchers can be applied to given metric. |
expire_metrics_per_metric_set.name
optional objectexpire_metrics_per_metric_set.name.pattern
required stringtype = "regex"expire_metrics_per_metric_set.name.type
required string enum| Option | Description |
|---|---|
exact | Only considers exact name matches. |
regex | Compares metric name to the provided pattern. |
expire_metrics_per_metric_set.name.value
required stringtype = "exact"expire_metrics_secs
optional floatThe amount of time, in seconds, that internal metrics will persist after having not been updated before they expire and are removed.
Set this to a value larger than your internal_metrics scrape interval (default 5 minutes)
so metrics live long enough to be emitted and captured.
healthchecks
optional objecthealthchecks.enabled
optional boolWhether or not healthchecks are enabled for all sinks.
Can be overridden on a per-sink basis.
truehealthchecks.require_healthy
optional boolWhether or not to require a sink to report as being healthy during startup.
When enabled and a sink reports not being healthy, Vector will exit during start-up.
Can be alternatively set, and overridden by, the --require-healthy command-line flag.
falselatency_ewma_alpha
optional floatThe alpha value for the exponential weighted moving average (EWMA) of transform latency metrics.
This controls how quickly the component_latency_mean_seconds gauge responds to new
observations. Values closer to 1.0 retain more of the previous value, leading to slower
adjustments. The default value of 0.9 is equivalent to a “half life” of 6-7 measurements.
Must be between 0 and 1 exclusively (0 < alpha < 1).
metrics_storage_refresh_period
optional floatThe interval, in seconds, at which the internal metrics cache for VRL is refreshed. This must be set to be able to access metrics in VRL functions.
Higher values lead to stale metric values from get_vector_metric,
find_vector_metrics, and aggregate_vector_metrics functions.
proxy
optional objectProxy configuration.
Configure to proxy traffic through an HTTP(S) proxy when making external requests.
Similar to common proxy configuration convention, you can set different proxies to use based on the type of traffic being proxied. You can also set specific hosts that should not be proxied.
proxy.http
optional stringProxy endpoint to use when proxying HTTP traffic.
Must be a valid URI string.
proxy.https
optional stringProxy endpoint to use when proxying HTTPS traffic.
Must be a valid URI string.
proxy.no_proxy
optional [string]A list of hosts to avoid proxying.
Multiple patterns are allowed:
| Pattern | Example match |
|---|---|
| Domain names | example.com matches requests to example.com |
| Wildcard domains | .example.com matches requests to example.com and its subdomains |
| IP addresses | 127.0.0.1 matches requests to 127.0.0.1 |
| CIDR blocks | 192.168.0.0/16 matches requests to any IP addresses in this range |
| Splat | * matches all hosts |
telemetry
optional objectTelemetry options.
Determines whether source and service tags should be emitted with the
component_sent_* and component_received_* events.
telemetry.tags
optional objecttelemetry.tags.emit_service
optional boolservice tag should be emitted
in the component_received_* and component_sent_*
telemetry.falsetelemetry.tags.emit_source
optional boolsource tag should be emitted
in the component_received_* and component_sent_*
telemetry.falsetimezone
optional stringThe name of the time zone to apply to timestamp conversions that do not contain an explicit time zone.
The time zone name may be any name in the TZ database or local to indicate system
local time.
Note that in Vector/VRL all timestamps are represented in UTC.
wildcard_matching
optional string enumSet wildcard matching mode for inputs
Setting this to “relaxed” allows configurations with wildcards that do not match any inputs to be accepted without causing an error.
| Option | Description |
|---|---|
relaxed | Relaxed matching (must match 0 or more inputs) |
strict | Strict matching (must match at least one existing input) |