Prerequisites
- A Debian, Ubuntu, or RPM-based Linux host on amd64 or arm64, with systemd and
sudo. - The Squasher CLI, signed in with
squasher login. - An ingest key and the project ID. See Create an ingest key.
- For container metrics: Docker, with its socket at
/var/run/docker.sock.
Install the Collector
1
Preview the setup
The preview writes nothing and changes nothing on the host.Leave out
--containers if you do not need Docker metrics. --environment defaults to
production, and --interval-seconds defaults to 60.Add --hosts <count> with the number of hosts that will run the bundle. The preview then
shows ingest_estimate: the expected metric points per minute against the project’s
events-per-minute limit. See Ingest rate limit.2
Render the install bundle
manifest.json, config.yaml, install.sh, and README.md. It
contains no key. The command does not overwrite a directory that exists.3
Install it
Review the files, then pass the key only to the install process:The installer writes the key to a file with mode
0600 and runs the Collector as the
squasher-collector user.4
Check it
verify returns healthy when CPU, memory, filesystem, optional Docker, and Collector health
metrics reached Squasher in the last 180 seconds. Otherwise it returns incomplete and names
the missing signal. A degraded Collector still counts as healthy, with a warning.What the Collector sends
The Collector does not read process command lines, environment variables, application logs, or
eBPF data. For application logs and traces, use an SDK or OpenTelemetry.
To see the data, select Infrastructure in the sidebar in Squasher. The Hosts tab lists
each host with its collector, status, last seen time, and CPU, memory, and disk use. Logs and
Traces on a host row open the logs and traces from that host (
host.name) for the same time
range.
Before the first host sends data, the Hosts tab shows the setup commands for Linux, the
OpenTelemetry Collector, and Kubernetes, with your project ID and the ingest endpoint already
filled in. The tab checks for data every 10 seconds and shows the host when its first metrics
arrive. To add another host later, select Add host.
macOS and other hosts
The Squasher Collector reads Linux/proc, so it runs on Linux only. On macOS, or on another host
where it does not run, use the OpenTelemetry Collector (otelcol-contrib) with the hostmetrics
receiver. Squasher shows these hosts in the same host list, marked
OpenTelemetry Collector (standard hostmetrics).
This minimal configuration sends CPU, memory, and filesystem metrics. Set host.name, because the
host list groups hosts by it:
.utilization metrics are off by default in the receiver. Without them, the host list
calculates memory and disk use from the usage metrics and shows no CPU value. macOS does not report
some metrics, for example parts of paging.
Then check the host:
verify --mode opentelemetry requires system.cpu.time, system.memory.usage, and
system.filesystem.usage, and does not require Collector health. Without --mode, verify
reads the mode from the data: it requires Collector health only for a Squasher Collector host.
Manage the Collector
Ingest rate limit
Projects have no ingest volume limit by default. A host sends about 150 points per minute at the default interval. Docker mode adds about 10 points per container. If you set an optional events-per-minute cap on the project, each metric data point counts as one event against it, and logs and spans of the same project share it. The cap refills continuously, with a burst of up to five minutes of the cap. Above the cap, Squasher answers429 with a
Retry-After header, usually a few seconds. When the service is briefly overloaded, it can answer
a retryable 503. See Ingest rate limits.
Collector 0.1.3 and later keep the data in memory and retry:
- The Collector waits for
Retry-After, or for a backoff that doubles from 1 second to 60 seconds, whichever is longer. It adds up to 10% jitter. - It retries a
429or a503with no age limit, and a network error for 30 minutes. - The queue holds at most 1,024 requests and 8 MiB, which is about 17 hours of host metrics. When it is full, the oldest request is dropped. A restart loses the queue.
429
in the last 15 minutes, squasher infra collectors list shows "throttled": true, and the
Infrastructure page shows a notice. To raise the cap, or to remove it, run:
infrastructure-collector-throttled template:
Limits
- The service runs with
MemoryHigh=32M,MemoryMax=64M, andCPUQuota=10%. - Docker mode adds the Collector user to the Docker socket group.
- The CLI renders a Linux systemd install only. For macOS, see macOS and other hosts. For Kubernetes, see Kubernetes.
Next steps
Docker
Collect container logs with an OpenTelemetry Collector.
Kubernetes
Collect pod logs and workload metrics with Helm.
Set a stable host name
For a systemd install, setSQUASHER_HOST_NAME in /etc/squasher-collector/collector.env, then restart squasher-collector. For other installs, set the variable in the collector process environment before it starts. Use a stable name for each host. If the value is empty or absent, the collector uses the configured name or the system host name. This setting does not change the service name.
New Docker metrics carry container.name and container.id on a resource for each container. Existing point filters continue to work.