Watch your servers
See what a server looked like
Every connected server sends its measurements each minute. Pick any minute of the last 30 days and see exactly what the server looked like, and which deploy came before.
The Metrics screen
Section titled “The Metrics screen”In the dashboard, open Metrics, choose a server and a time range: 1 hour, 24 hours, 7 days or 30 days.
- CPU, Memory, Disk and Network for the server.
- Requests a minute, failed requests and the slowest 5% of requests, when Kiyesi can read the web server’s log (see below).
- Endpoints: each route, such as
GET /api/users/:id, with requests a minute, the percentage that failed, and response times. - Containers: each running container’s CPU and memory.
A dashed line on a chart is a deploy. Each server’s page shows its last 24 hours of CPU, memory and disk too.
Any minute, exactly
Section titled “Any minute, exactly”Click any point on a chart, or type a time under Go to a minute and choose Show. A panel opens with that minute’s exact numbers: CPU, load, memory and swap, each disk, the network, every container, the requests to each endpoint, and the deploy that came before it, with when.
Charts draw at most about 300 points, so a 30-day chart shows averages of about two and a half hours; the minute panel always shows the minute itself.
In a terminal
Section titled “In a terminal”kiyesi metrics checkout-api-prod --since 24hIt draws CPU, memory, each disk, requests, failures and the slowest times as bars, with the latest and highest values, and lists the deploys in that time.
Requests from your web server
Section titled “Requests from your web server”The agent reads requests from:
/var/log/nginx/access.logon the server, or- the output of an nginx, Caddy, OpenResty or Traefik container.
Request counts and failures work with any standard format. Response times need the log to include how long each request took:
-
nginx: add
$request_timeto the end of your log format, then reload nginx:log_format kiyesi '$remote_addr - $remote_user [$time_local] ''"$request" $status $body_bytes_sent ''"$http_referer" "$http_user_agent" ''$request_time';access_log /var/log/nginx/access.log kiyesi; -
Caddy: turn on its access log to its output; it includes the time already:
example.com {log {output stdoutformat json}}
Nothing that identifies a visitor leaves the server: the query string is dropped and ids in paths become :id. What the agent reads and sends lists every field.
How long it is kept
Section titled “How long it is kept”Measurements are kept 30 days. History, with the deploys, is kept 90 days.