Skip to content

Vector

Common parts of every card (states, backoff, Unit and ExecReload, Test config, manual commands) are described in Monitor window.

Detected by systemd units vector or binaries vector
Read every 60 s while the Monitor window shows the tab
Active probe yes, off by default
Test config on demand

Vector: sources, transforms and sinks of the topology and how they connect, and (active probe) the API’s health and the events, errors and discards per component.

Passive: vector processes; the configuration from -c / --config / --config-{toml,yaml,json} / -C / --config-dir of the first trusted vector process of the expected account, or the package’s default (/etc/vector/vector.yaml, then vector.toml). TOML files go through the shared conf.awk, YAML files through yaml.awk (with * for component ids); JSON files and the per-type subfolders of a config directory are not read. Closed key list: per component type, inputs, address, endpoint(s), uri (URLs without userinfo and query), include; api.enabled, api.address, data_dir and the type of secret backends. Never default_api_key, auth.*, request.headers, tls.*, sasl.*, VRL source, or any value with ${…}. Lines with ${ and SECRET[ are only counted.

Active (off by default): GET /health of the API (when api.enabled) and GET /metrics of the first prometheus_exporter sink, both on the loopback through the shared HTTP helper and only when a trusted vector process holds the port (the one whose -c was read, when one was). Never the GraphQL API (POST, its schema changes between releases), vector top or vector tap.

Runs: GET /health of the API (when api.enabled is true; default 127.0.0.1:8686) and GET /metrics of the first prometheus_exporter sink (default port 9598), on 127.0.0.1/[::1] through the shared HTTP helper (trusted curl under env -i and GNU timeout, no proxy, no redirects), only when the port is held by a trusted vector process (the one whose -c was read, when one was). Never the GraphQL API, vector top or vector tap. Only the health flag, the version and the event, error and discard counters per component leave the host

Traces on the host: two requests every 60 s; Vector does not log API or exporter requests by default

What it does, as the card says: loads and parses the configuration, builds the topology and compiles the VRL programs like a start does, prints the errors and exits; –no-environment skips the component and health checks (no connection to sources or sinks); does not touch the running Vector.

Not offered when:

  • the last probe did not read the whole configuration (a config directory, whose per-type subfolders are not read, a JSON file, a file over the limit or where the filter stopped, or a path not followed), so secret backends and ${…} references it may hold are not known
  • secret backend <> is of type exec, and validate would run its command
  • the configuration uses <env> line(s) with ${{…}} environment variables and <secrets> with SECRET[…] (backends: <>); validate without the service’s environment (EnvironmentFile, /etc/default/vector) would test other values, and a secret backend would be asked for its secrets

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close