Agent
Tier Agent sends host metrics and events over the Tier network to a collector that stores and exposes the received data locally.
Components
- An agent runs on a monitored host, reads samples from a local source, and sends them to the configured collector.
- A collector receives samples, stores them on its host, and provides a local query socket. An instance can run both roles on the same host.
-
Both the agent host and collector need a running
tierdconnected to the same Tier network.
The packaged host-metrics source reports load, memory, disk, uptime, and systemd unit state every 15 seconds by default. Custom commands can provide additional samples.
Data and delivery
A source writes one sample per line. A gauge is a
replaceable value, such as current memory usage. An
event is an append-only record, such as a deployment
notification.
gauge host.mem_used_pct 51.7
event deploy.release v1.2.3 started
Samples are sent as end-to-end sealed Tier messages to the collector. Communicators can relay the ciphertext but cannot read the sample contents. Delivery is best-effort and online-only: samples are not spooled for later delivery when the collector is unavailable.
Storage and access
The collector stores data locally, by default under
/var/lib/tier-agent/data. Gauges are kept as a current
snapshot; events are segmented and retained according to the
collector configuration (seven days by default). The local query
socket can return all data or filter by a key.
An optional web dashboard displays current gauges and recent events. It is not a time-series database: gauge history, alerting, and offline replay are not provided.
Query data locally on the collector:
sudo tier-agent query /run/tier-agent/agent-query.sock
sudo tier-agent query /run/tier-agent/agent-query.sock cpu
Dashboard security
The dashboard is disabled by default. When enabled, it listens on
127.0.0.1:8080 by default and has no built-in
authentication or TLS. Keep it on loopback or restrict access
with a firewall or a trusted reverse proxy that provides both.
Binding to 0.0.0.0 or :: exposes it to
reachable hosts.
Use SSH port forwarding for remote access, for example:
ssh -N -L 8080:127.0.0.1:8080 operator@collector
Setup
Bootstrap a collector, optionally enabling its local dashboard:
sudo tier-agent bootstrap collector --enable-web-server
Then configure each monitored host with the collector's Tier address:
sudo tier-agent bootstrap client --collector=<COLLECTOR-ADDRESS>
Bootstrap writes configuration and identity seeds and enables the
matching systemd units. Use tier-agent id to print an
agent's Tier user ID. Agent and collector settings are stored in
/etc/tier/agent.toml and
/etc/tier/collector.toml. For network names and seed
configuration, see Configuration.
Full documentation: Agent, Agent adapters.