Environment variables
These variables configure the fleet agent, which ships telemetry from your hosts, and the CLI and bridges.
Fleet agent
The installer writes these to /etc/constellation/agent.env (root-only) and /etc/constellation/socket.env, and the fleet agent reads them at start.
| Variable | Purpose |
|---|---|
CONSTELLATION_API_TOKEN | The API key, sent as x-api-key |
CONSTELLATION_API_URL | Platform API base URL for this host |
CONSTELLATION_ENDPOINT | gRPC ingest host:port for gRPC egress. Empty on HTTP egress |
CONSTELLATION_SOCKET_PATH | Ingest socket, always /run/constellation-agent/telemetry.sock. The only variable publishing applications read |
constellation-agent emit and verify use CONSTELLATION_SOCKET_PATH from the process environment when it is set, then socket.env, then the default path.
Installer
The install script reads these. Export CONSTELLATION_API_TOKEN in your shell and pass it with sudo --preserve-env=CONSTELLATION_API_TOKEN, so it never appears on a command line, where ps and the auth log would show it; set the others after env, as in the example below. sudo drops every variable it is not told to keep, so an exported CONSTELLATION_API_URL needs --preserve-env=CONSTELLATION_API_TOKEN,CONSTELLATION_API_URL or env to reach the installer; without it the agent points at https://api.constellation.space. Re-running the installer regenerates the configuration from these values.
| Variable | Default | Purpose |
|---|---|---|
CONSTELLATION_API_TOKEN | none | Required. The API key the fleet agent authenticates with |
CONSTELLATION_API_URL | https://api.constellation.space | API base URL |
CONSTELLATION_EGRESS | grpc | grpc or http. Any other value fails the install. See Egress |
CONSTELLATION_ENDPOINT | derived | gRPC ingest host:port. Derived for https://api.constellation.space and its stage. and dev. variants; required for any other API URL on gRPC egress |
CONSTELLATION_BUFFER_STRATEGY | disk | disk or memory. Any other value fails the install. See Buffering |
CONSTELLATION_FLUSH_INTERVAL | 1s | Fleet agent flush interval, as a Telegraf duration |
CONSTELLATION_TELEGRAF_VERSION | 1.39.2 | Telegraf version to install or expect. The installer carries package digests for 1.39.2 only, so it fails on any other value when it has to install Telegraf itself |
CONSTELLATION_TELEGRAF_SHA256 | pinned | Override the expected Telegraf package checksum |
CONSTELLATION_TELEGRAF_PACKAGE | none | Path to a local .deb or .rpm for private or air-gapped hosts. Requires CONSTELLATION_TELEGRAF_SIGNATURE |
CONSTELLATION_TELEGRAF_SIGNATURE | none | Local InfluxData .asc detached signature for that package |
CONSTELLATION_INFLUXDATA_KEY | fetched | Local InfluxData signing key; otherwise fetched from repos.influxdata.com. Its fingerprint is checked either way |
CONSTELLATION_CLI_PACKAGE | fetched | Local constellation-agent binary for air-gapped installs |
CONSTELLATION_GRPC_PACKAGE | fetched | Local gRPC egress binary for air-gapped installs. Needed unless CONSTELLATION_EGRESS=http |
CONSTELLATION_ARTIFACT_BASE | release URL | Base URL for the CLI and gRPC binaries |
CONSTELLATION_ALLOW_TELEGRAF_TAKEOVER | 0 | Set 1 to adopt a pre-existing Telegraf the installer did not provision |
CONSTELLATION_ALLOW_TELEGRAF_VERSION_MISMATCH | 0 | Set 1 to proceed against an existing Telegraf whose version does not match the pin |
A fully offline install needs every artifact supplied locally; supplying only the Telegraf package fails partway through. Local artifacts are verified the same way as downloaded ones. Get the files from Downloads.
Install with HTTP egress and a memory buffer:
curl -fsSL https://install.constellation.space/agent | \
sudo --preserve-env=CONSTELLATION_API_TOKEN env \
CONSTELLATION_EGRESS=http \
CONSTELLATION_BUFFER_STRATEGY=memory sh
gRPC egress child
On gRPC egress, Telegraf runs telegraf-constellation-grpc as a child process, which translates line protocol to constellation.ingest.v2.TelemetryIngest/Write calls. The installer passes it the endpoint and the key through Telegraf's environment, so the child reads no config file and application code never holds a credential. The other variables are tuning options read from the environment list of the [[outputs.execd]] block; the installer overwrites that block on every run.
| Variable | Purpose |
|---|---|
CONSTELLATION_ENDPOINT | Required. gRPC host:port. The child exits without it |
CONSTELLATION_API_TOKEN | Required. Sent as x-api-key request metadata |
CONSTELLATION_TIMEOUT | Per-RPC timeout as a Go duration. Default 10s |
CONSTELLATION_BATCH_SIZE | Records per Write call, 1 to 1000. Default 500 |
CONSTELLATION_SHIM_FLUSH_INTERVAL | How long the child holds a partial batch before sending, 1ms to 1m. Default 50ms. Separate from the collector's flush interval |
CONSTELLATION_INSECURE | true disables TLS. Test and private-tunnel use only; the default is TLS 1.2 or later |
Key handling is in Security overview, and the install procedure in Fleet agent.
CLI and bridges
The constellation CLI, the SDKs and every bridge built on them read these:
| Variable | Default | Purpose |
|---|---|---|
CONSTELLATION_API_URL | https://api.constellation.space | API base URL |
CONSTELLATION_API_KEY | None | The API key, sent as x-api-key. A bridge needs predictions:read. |
CURSOR_FILE | cursor.txt | Where a bridge built on the SDK Bridge classes keeps the last cursor it applied, and beside it (.acted) the approved actions it carried out |
POLL_SECONDS | 15 | How often a bridge polls for workflow results once caught up |
CONSTELLATION_CONFORMANCE_LOG | Unset | The file a bridge built on the SDK Bridge classes appends its conformance log to |
Each official connector adds its own, listed on its page under Connectors.