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
gyroscopic --configwith no path prints a template with every key and its default, and exits; it writes no files. Start from it.gyroscopic --config <path>starts Gyroscopic with that file. Every key is optional: a key you leave out gets its default.- Unknown keys stop Gyroscopic at start, with the key named in the error. A typo is never silently ignored.
- Changes take effect at the next restart; there is no reload. A restart clears the stored data (it is RAM only).
- The file holds secrets: keep it readable only by the service user (the install page shows owners and modes).
| OS | Path (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.
| Key | Type | Default | Valid values | Effect |
|---|---|---|---|---|
listen_address | string | "127.0.0.1" | an IPv4 or IPv6 address | Address the HTTP API listens on. Use a private interface when Tracerlight, Tailfin, NGINX or your front-end run on other hosts. ★ |
port | integer | 3000 | 1–65535 | HTTP API port. ★ |
request_timeout_secs | integer | 10 | 0 or more; 0 = no limit | Longest time one request may take; slower requests get 503. ★ |
tls | string 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_names | list of strings | [] | IP addresses or DNS names | Extra names in the self-signed certificate. Needs "self-signed". |
allow | list of strings | [] | IPv4/IPv6 addresses or CIDRs | Only 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.
| Key | Type | Default | Valid values | Effect |
|---|---|---|---|---|
tracerlight_secret | string | placeholder | any text | Password for user tracerlight on POST /api/v1/collect. Absent = no auth for collect. |
tailfin_secret | string | placeholder | any text | Password for user tailfin on every read endpoint. This is the secret a front-end needs. Absent = no auth for reads. ★ |
mcp_secret | string | placeholder | any text | Password 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.
| Key | Type | Default | Valid values | Effect |
|---|---|---|---|---|
count | integer | client 25, server 5 | 1 or more | Most tags of this type at once. When full, new tags get 503 ("storage full for tag"); existing tags keep working. |
buffer_length | integer | 691200 | 1 or more | Records 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_timeout | integer (seconds) | 86400 | 0 or more; 0 = never | A 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_records | integer | 256 | 1 or more | Records per compressed storage block. Leave as is. |
index_block_records | integer | 1024 | 0 or more; 0 = off | Block size of the time index that speeds up time-window queries. Leave as is. |
bucket_records | integer | 1024 | 0 or more; 0 = off | Records 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.
| Key | Type | Default | Valid values | Effect |
|---|---|---|---|---|
enabled | boolean | false | true, false | Start the MCP server for AI assistants. |
listen_address | string | "127.0.0.1" | an IPv4 or IPv6 address | MCP listen address. |
port | integer | 3101 | a free port, not the API port | MCP port. |
allow_collect | boolean | false | true, false | Allow writing data through MCP. Keep false. |
series_max_cells | integer | 10000 | 1 or more | Largest series answer over MCP. |
tls, tls_names, allow | as network | as network | as network | The 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.
| Key | Type | Default | Valid values | Effect |
|---|---|---|---|---|
handler_channel_size | integer | 8192 | 1 or more | Queue of incoming requests. Leave as is. |
actor_channel_size | integer | 256 | 1 or more | Queue per tag. Leave as is. |
retry_after_secs | integer | 5 | 0 or more; 0 = no header | The 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.
| Key | Type | Default | Valid values | Effect |
|---|---|---|---|---|
dump | boolean | true | true, false | /api/v1/dump on or off (off = 404). Turn it off for anything exposed. ★ |
max_query_limit | integer | 1000000 | 1 or more | Highest limit and samples a request may ask for. ★ |
series_max_points | integer | 360 | 1 or more | Most points per tag in one series call. ★ |
series_max_tags | integer | 4096 | 1 or more | Most tags in one series call; also sets the POST body limit (1024 + this × 112 bytes). ★ |
series_inflight | integer | the CPU count (the template shows it) | 1 or more | How many tags one series call reads in parallel. |
series_max_cells | integer | 500000 | 1 or more | Largest series answer (tags × points × fields). ★ |
series_max_calls | integer | 4 | 1 or more | Concurrent series calls (HTTP and MCP together); more get 503. ★ |
tls_dir
A top-level key (not inside network).
| Key | Type | Default | Valid values | Effect |
|---|---|---|---|---|
tls_dir | string (path) | "" (the OS default) | a folder path | Where 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:
| Problem | Message |
|---|---|
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 type | invalid type: string "3000", expected u16 (a port written as text) |
count or buffer_length is 0 | storage.client.count must be greater than 0 |
columnar_block_records is 0 | storage.client.columnar_block_records must be >= 1; ... |
| A queue size is 0 | backpressure.handler_channel_size must be greater than 0 |
An endpoints limit is 0 | endpoints.series_max_points must be >= 1 (the same for the others, and mcp.series_max_cells) |
| Bad allow entry | invalid allow entry 'notanip' |
Bad tls value | invalid tls value 'bogus'; expected "off", "self-signed", or a {"cert", "key"} object |
tls_names without self-signed | tls_names requires tls "self-signed" |
Bad tls_names entry | invalid 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:
- The address and port (
network.listen_address,network.port), and whether the front-end host is innetwork.allow. - HTTP or HTTPS (
network.tls); for self-signed, the certificate file or its fingerprint. - The read secret,
auth.tailfin_secret(usertailfin). - How much history there is:
buffer_length× the Tracerlight interval, andidle_timeout. - The limits in
endpoints, and whetherdumpis 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.