Skip to main content
The infrastructure API reads what your collectors and hosts report. Use it to see if every Squasher Collector still sends data, and which hosts send CPU, memory, and filesystem metrics. To install a collector, see Host and Docker metrics.

Operations

The key needs read access to the project.

Collector status

Squasher finds a collector from its OpenTelemetry self-metrics of the last 24 hours. Its status is one of: throttled is true when ingest answered 429 (the project rate limit) to the collector in the last 15 minutes. See Ingest rate limit.

Collector overview

List collectors

limit is from 1 to 100, and the default is 50. The response has collectors, the same overview, and truncated (true when there are more collectors than limit). Degraded collectors come first, then offline ones. Each collector has collector_id, status, throttled, last_seen, version, host_name, host_id, environment, monitored_service, target, config_digest, and config_schema_version. pipeline holds the point counters of the receiver (accepted and refused) and of the exporter (sent, failed, dropped, and throttled). resource_usage holds cpu_seconds_total, memory_rss_bytes, and uptime_seconds. A counter is null when the collector version does not report it.

List hosts

A host is found from the standard OpenTelemetry system.* metrics, grouped by host.name. They can come from the Squasher Collector or from the OpenTelemetry Collector hostmetrics receiver (collector is squasher_collector or opentelemetry_collector). A host is offline when it sent no point in the last 5 minutes of the window, else active. Each host has name (host.name, else host.id, else service.name), status, last_seen, os_type, host_arch, environment, service_name, service_names, and metrics (the newest point of each host metric). cpu_utilization, memory_utilization, and filesystem_utilization (the fullest filesystem) are fractions from 0 to 1 over the last 5 minutes of the window, or null when the host does not send that metric. The response also has from, to, total, truncated, and generated_at.

CLI and MCP

Use squasher infra collectors overview, squasher infra collectors list, and squasher infra hosts list. In MCP Code Mode, call search("infrastructure"). Related: Metrics API, Host and Docker metrics.