Server and container
metrics, built in

Echowa reads the host and every container every 15 seconds, from inside its own process. No agent, no exporter, no Prometheus. Charts run from the last hour to the last 90 days.

curl -fsSL https://get.echowa.dev/install.sh | sudo bash

Metrics

The machine and every app on it

The Server page charts the host, each app has a Metrics section, and the dashboard keeps the headline figures in view.

The whole server

Live CPU, load, memory and every disk as meters, then six charts with a range picker and a table of the containers running now.

Each app, across deploys

Containers are summed by app, so a chart carries on when a deploy replaces them. Running tasks are drawn as steps, so a rollout's overlap shows.

What it measures

Resources, read the way vmstat and docker stats read them, and checked against both.

  • The host

    CPU, load, memory, swap, every disk, disk I/O and network, on the Server page.

  • Each app

    CPU, memory against the app's limit, running tasks, network and disk I/O, in the app's Metrics section, with its deploys marked if you want.

  • Each database

    Size, connections, open transactions, cache hits and commits, read every minute, with slow queries on demand.

  • Out-of-memory kills

    When the kernel kills an app's container for memory, the app's overview says when, and an alert can send it to you.

  • Headline figures

    CPU, memory, root disk and load across the top of the dashboard, refreshed every 15 seconds.

  • Next to no overhead

    The sampler costs the server about 0.09% of one core, measured on our dev machine.

How readings are kept

Every 15 seconds Echowa reads the host from /proc and each running container from the Docker API. The newest reading stays in memory for the live figures. Each minute's four readings become one stored row, with the average and the maximum, so a short spike isn't averaged away.

The figures live in their own SQLite file, metrics.sqlite, next to Echowa's database. It isn't part of Echowa's backups, so losing it loses history, never settings. Old figures thin out on a fixed schedule:

  • Minute figures are kept for 48 hours.
  • Hourly rollups are kept for 90 days.
  • Daily rollups are kept for a year.

Charts up to 24 hours wide draw the minute figures, and wider ones the hourly rollups. The range picker runs from 1 hour to 90 days.

Apps, not containers

Every container Echowa starts carries an echowa.app label. Readings are summed per app through it, so an app's chart is one line through any number of deploys and replicas, and its memory chart shows the app's limit when it has one. Containers Echowa didn't start show in the Server page's table with their latest reading, and aren't stored.

A rollout shows up as a step in the running tasks line, from one to two and back, as the new task starts beside the old one. Overlaps shorter than 15 seconds can fall between readings.

Turn on Deploys beside the range, on an app's or a database's charts, and each deploy that succeeded in the window gets a line and a flag that opens it. Failed and rolled-back deploys aren't marked, since the old version kept running. Deploys close together share a flag, and your browser remembers the switch.

What it doesn't do

Echowa measures resources, not requests. It has no request rates, latencies or traces, so pair it with your app's own logging or an APM tool for those.

Alerts watch the same figures. An app's memory against its limit, a database's connections or a disk filling up can send a message to Slack, Discord, Teams, ntfy or email once it has held for the minutes you choose.

If you need alerts across many servers, or metrics from inside your app, Prometheus and Grafana are the right tools. The monitoring guide shows both approaches, with the plain Linux commands that read the same numbers.

Questions

How the numbers are read, kept and shown.

Do I need to install an agent or exporter?

No. Echowa reads the host and the containers from inside its own process, through /proc and the Docker API it already uses. There's nothing else to install or keep updated.

How far back can I look?

The charts reach back 90 days. Minute figures are kept for 48 hours and hourly rollups for 90 days, and daily rollups are kept for a year.

Does Echowa send alerts?

Yes. Alerts watch the same figures, such as an app's memory against its limit, a database's connections or a disk filling up, and send to Slack, Discord, Teams, ntfy or email once a condition has held for the minutes you choose. Events such as a failed deploy send as they happen.

Does collecting metrics slow the server down?

Barely. Reading the host and every container every 15 seconds cost about 0.09% of one core on our dev machine.

Can I see containers Echowa didn't deploy?

Yes, in the Server page's container table, with their latest reading. Only Echowa's apps are stored and charted.

Can I export the metrics to Prometheus or Grafana?

No. There's no exporter. The figures are in a SQLite file on the server, if you want to read them yourself.

Deploy it.
Then see everything.

One server, every deploy, every number.

curl -fsSL https://get.echowa.dev/install.sh | sudo bash