Gyroscopic 1.12.6

Gyroscopic configuration

Gyroscopic reads one JSON file at start. This page lists every key. Keys marked ★ matter when you build or run a front-end on the Gyroscopic API.

The filenetworkauthstoragemcpbackpressureendpointstls_dirErrors at startFront-end checklist

The file

OSPath (as on the install page)
Linux/etc/gyroscopic/config.json
FreeBSD, OpenBSD/usr/local/etc/gyroscopic/config.json
Windows%ProgramData%\solidfokus\gyroscopic\config.json

Command-line flags (--log-format, --tls-info, the Windows service flags) are on Install Gyroscopic.

A minimal file: only what differs from the defaults. This one listens on all addresses of a private host sets the three secrets (replace the placeholders) and turns dump off:

{
  "network": { "listen_address": "0.0.0.0" },
  "auth": {
    "tracerlight_secret": "<INGEST_SECRET>",
    "tailfin_secret": "<READ_SECRET>",
    "mcp_secret": "<MCP_SECRET>"
  },
  "endpoints": { "dump": false }
}

With a secret set, TLS off and an address other than loopback, Gyroscopic logs Basic auth on http is unencrypted at start: the passwords cross the network readable. Use TLS (network.tls) or NGINX in front when the network is not trusted.

network

The HTTP API listener.

KeyTypeDefaultValid valuesEffect
listen_addressstring"127.0.0.1"an IPv4 or IPv6 addressAddress the HTTP API listens on. Use a private interface when Tracerlight, Tailfin, NGINX or your front-end run on other hosts. ★
portinteger30001–65535HTTP API port. ★
request_timeout_secsinteger100 or more; 0 = no limitLongest time one request may take; slower requests get 503. ★
tlsstring or object"off""off", "self-signed", or {"cert": "<path>", "key": "<path>"}HTTPS for the API. "self-signed" creates a certificate in tls_dir on first start; with your own PEM files, restart after a renewal. ★
tls_nameslist of strings[]IP addresses or DNS namesExtra names in the self-signed certificate. Needs "self-signed".
allowlist of strings[]IPv4/IPv6 addresses or CIDRsOnly these peers may connect; this applies to localhost too. Empty = everyone. Others get no HTTP answer (the connection is closed). ★

auth

HTTP Basic auth passwords, one per group; each protects only its own group. The template values are public placeholders: replace all three (for example with openssl rand -base64 32). Gyroscopic only logs a warning if you keep them.

KeyTypeDefaultValid valuesEffect
tracerlight_secretstringplaceholderany textPassword for user tracerlight on POST /api/v1/collect. Absent = no auth for collect.
tailfin_secretstringplaceholderany textPassword for user tailfin on every read endpoint. This is the secret a front-end needs. Absent = no auth for reads. ★
mcp_secretstringplaceholderany textPassword for user mcp on the MCP port. Absent = no auth for MCP.

storage

Two blocks with the same keys: storage.client for Tracerlight client tags and storage.server for server tags.

KeyTypeDefaultValid valuesEffect
countintegerclient 25, server 51 or moreMost tags of this type at once. When full, new tags get 503 ("storage full for tag"); existing tags keep working.
buffer_lengthinteger6912001 or moreRecords kept per tag. History = buffer_length × the Tracerlight interval (691200 at 1 s ≈ 8 days). Decides how far back a front-end can show. Memory: see Sizing. ★
idle_timeoutinteger (seconds)864000 or more; 0 = neverA tag with no new record for this long is dropped and its slot freed. A front-end then sees it in overview → evicted. ★
columnar_block_recordsinteger2561 or moreRecords per compressed storage block. Leave as is.
index_block_recordsinteger10240 or more; 0 = offBlock size of the time index that speeds up time-window queries. Leave as is.
bucket_recordsinteger10240 or more; 0 = offRecords per summary block used by /api/v1/buckets. 0 turns these summaries off.

mcp

The MCP server for AI assistants (Install Gyroscopic, section 5). Not used by front-ends.

KeyTypeDefaultValid valuesEffect
enabledbooleanfalsetrue, falseStart the MCP server for AI assistants.
listen_addressstring"127.0.0.1"an IPv4 or IPv6 addressMCP listen address.
portinteger3101a free port, not the API portMCP port.
allow_collectbooleanfalsetrue, falseAllow writing data through MCP. Keep false.
series_max_cellsinteger100001 or moreLargest series answer over MCP.
tls, tls_names, allowas networkas networkas networkThe same settings for the MCP port. Both self-signed listeners share one certificate.

backpressure

How Gyroscopic sheds load: when a queue is full it answers 503 at once instead of waiting.

KeyTypeDefaultValid valuesEffect
handler_channel_sizeinteger81921 or moreQueue of incoming requests. Leave as is.
actor_channel_sizeinteger2561 or moreQueue per tag. Leave as is.
retry_after_secsinteger50 or more; 0 = no headerThe Retry-After value sent with 503. ★

endpoints

Limits on what one API request may ask for. These are the limits a front-end runs into; see API limits.

KeyTypeDefaultValid valuesEffect
dumpbooleantruetrue, false/api/v1/dump on or off (off = 404). Turn it off for anything exposed. ★
max_query_limitinteger10000001 or moreHighest limit and samples a request may ask for. ★
series_max_pointsinteger3601 or moreMost points per tag in one series call. ★
series_max_tagsinteger40961 or moreMost tags in one series call; also sets the POST body limit (1024 + this × 112 bytes). ★
series_inflightintegerthe CPU count (the template shows it)1 or moreHow many tags one series call reads in parallel.
series_max_cellsinteger5000001 or moreLargest series answer (tags × points × fields). ★
series_max_callsinteger41 or moreConcurrent series calls (HTTP and MCP together); more get 503. ★

tls_dir

A top-level key (not inside network).

KeyTypeDefaultValid valuesEffect
tls_dirstring (path)"" (the OS default)a folder pathWhere the self-signed cert.pem and key.pem live. Empty = /var/lib/gyroscopic/tls on Linux, /var/db/gyroscopic/tls on FreeBSD and OpenBSD, %ProgramData%\solidfokus\gyroscopic-tls on Windows. A front-end that trusts the certificate file or pins its fingerprint (gyroscopic --tls-info) needs it from here.

Errors at start

A bad config stops Gyroscopic before it listens, with one line that names the problem. Real messages:

ProblemMessage
Unknown key (here network.bogus)Configuration error: failed to parse config '<path>': unknown field `bogus`, expected one of `listen_address`, `port`, `request_timeout_secs`, `tls`, `tls_names`, `allow` at line 1 column 174
Wrong typeinvalid type: string "3000", expected u16 (a port written as text)
count or buffer_length is 0storage.client.count must be greater than 0
columnar_block_records is 0storage.client.columnar_block_records must be >= 1; ...
A queue size is 0backpressure.handler_channel_size must be greater than 0
An endpoints limit is 0endpoints.series_max_points must be >= 1 (the same for the others, and mcp.series_max_cells)
Bad allow entryinvalid allow entry 'notanip'
Bad tls valueinvalid tls value 'bogus'; expected "off", "self-signed", or a {"cert", "key"} object
tls_names without self-signedtls_names requires tls "self-signed"
Bad tls_names entryinvalid tls_names entry 'bad name!'
MCP on the API port (or any port in use)Failed to bind to 127.0.0.1:3000: Address already in use (os error 98)

Front-end checklist

What the person running a front-end needs from the Gyroscopic operator:

  1. The address and port (network.listen_address, network.port), and whether the front-end host is in network.allow.
  2. HTTP or HTTPS (network.tls); for self-signed, the certificate file or its fingerprint.
  3. The read secret, auth.tailfin_secret (user tailfin).
  4. How much history there is: buffer_length × the Tracerlight interval, and idle_timeout.
  5. The limits in endpoints, and whether dump is on.

Test status

Tested with 1.12.6-bcd8897 on Debian 13 (box), 2026-11-27: the defaults (from --config), the minimal file above (secrets replaced; it started, answered, logged the unencrypted-auth warning, and dump answered 404), and every error message on this page (each made by breaking one key). Allow list: a listed address was answered and an unlisted one got no HTTP answer, on loopback only.