Watch your servers
Watch a managed service
When a platform runs the machine, there is nothing to install: link it once, and its logs and figures arrive beside your servers.
What you get, and what you do not
Section titled “What you get, and what you do not”| From the platform | What Kiyesi does with it |
|---|---|
| Log lines | Logs, searched and followed like a server’s, with secrets masked before they are stored. Errors in them raise incidents. |
| Requests (Heroku’s router, Vercel’s edge, OpenTelemetry, Render and Fly.io metrics) | Each endpoint’s requests, errors and response times, on the metrics charts. |
| CPU, memory, disk and network, where the platform gives them | The same charts as a server’s. |
| Crashes and memory kills (Heroku) | Events in History, and evidence for incidents. |
| Deploys | Deploy lines on the charts, and a verdict 10 minutes after each. |
| Traces from OpenTelemetry | Traces: where a slow request’s time went, and its slow queries. |
There is no scan: the platform looks after the machine, so the 25 checks do not apply. But the app still gets a grade from outside: add an uptime check for its address, and Kiyesi grades what a visitor’s browser sees, with each fix written for the platform it runs on. Servers shows No scan: the platform runs the machine. A managed service is never called silent just because it is quiet, as a quiet app may simply have no visitors; use an uptime check for that. If you run the agent beside it (see below), it is watched for silence like a server.
Link a platform
Section titled “Link a platform”In the dashboard, open Settings, Managed services. Choose the platform, a name, the project and environment its services belong to, and type a fresh authenticator code. Linking needs Manage on servers and findings: the Owner and Admin roles, or a role you made with it.
Kiyesi shows the addresses to paste into the platform, with the link’s token in them. The token starts with kpl_, can only send this link’s data, and is shown once: Kiyesi keeps only its hash.
Paste the addresses into the platform
Section titled “Paste the addresses into the platform”Follow your platform’s section below. The first data usually arrives within a minute; each service the platform names becomes a server called by its name.
Choose which services count
Section titled “Choose which services count”Add new services by themselves is on unless you turn it off. When it is on, up to 25 services are added as they appear. When it is off, a new service waits in Settings until you choose Add, and nothing it sends is kept meanwhile. Names in Services left out are dropped and never added.
Render
Section titled “Render”Render streams logs as syslog over TLS, and metrics as OpenTelemetry.
- Logs. In Render’s workspace settings, open Log streams, add a stream with the endpoint
syslog.kiyesi.dev:6514and the link’s token in Token. Every service in the workspace streams; Kiyesi names each by its service name. - Metrics (Render’s Professional plan and above). In Metrics streams, add a destination with the Custom provider: the endpoint is the link’s OpenTelemetry address, and the API key is the token. Kiyesi reads CPU, memory, disk, network, and requests, with how long the slowest 5% took.
- Deploys. In Webhooks, add the link’s deploy address for the event
deploy_ended. Copy the webhook’s signing secret (it starts withwhsec_) into the link’s Signing secret in Kiyesi. Every notice is then checked, and one older than five minutes is refused.
Heroku
Section titled “Heroku”A Heroku drain is for one app: make one link for each app.
heroku drains:add https://api.kiyesi.dev/v1/intake/<token>/logs -a <app>heroku labs:enable log-runtime-metrics -a <app>heroku webhooks:add -i api:release -l notify -u https://api.kiyesi.dev/v1/intake/<token>/deploys -s <secret> -a <app>The drain sends every line, including the router’s line for each request, which gives each endpoint’s requests, errors and time. Runtime metrics add each dyno’s memory and load every 20 seconds. Crashed dynos and R15 memory quota vastly exceeded become events. Each release that succeeds is a deploy; give Kiyesi the same <secret> as the link’s Signing secret. The drain’s frames are numbered, so a frame Heroku sends twice is stored once.
Railway
Section titled “Railway”Railway has no log drain. Send from the app itself with OpenTelemetry, which every common language has:
OTEL_EXPORTER_OTLP_ENDPOINT=https://api.kiyesi.dev/v1/intake/otlpOTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer%20<token>Logs, traces and the HTTP server’s metrics then arrive under the app’s service.name. Or run a Vector service in the project with an http sink to the link’s log address. For deploys, add the link’s deploy address in the project’s Settings, Webhooks. Railway does not sign its notices, so the token in the address is the check.
Fly.io
Section titled “Fly.io”-
Logs. Run Fly’s log shipper once for your organisation, with two secrets:
Terminal window fly secrets set HTTP_URL=https://api.kiyesi.dev/v1/intake/logs HTTP_TOKEN=<token> -a <log shipper app>Each app’s lines arrive under the app’s name.
-
Metrics. Make a token that can only read, and paste it, with your organisation’s slug, into the link’s Fly.io metrics in Kiyesi:
Terminal window fly tokens create readonlyEvery minute Kiyesi reads each app’s CPU, memory, network and requests from Fly’s metrics. The token is kept encrypted and can change nothing. If Fly refuses it, the link says so.
Vercel
Section titled “Vercel”- Logs. In your team’s settings, open Drains, add a log drain with the delivery format NDJSON and the link’s log address. Vercel shows a verification code: paste it into the link’s Vercel verification code first: Vercel checks the address by asking for that code back. Paste the drain’s signature secret into Signing secret.
- Deploys. In Webhooks, add the deploy address for
deployment.succeeded.
Each request through Vercel’s edge counts towards its endpoint; the visitor’s address and browser, which the record also carries, are never stored.
Netlify
Section titled “Netlify”Deploys. In the site’s Deploy notifications, add an outgoing webhook for Deploy succeeded to the link’s deploy address, with a JWS secret. Give Kiyesi the same secret as the link’s Signing secret.
Logs are for Netlify Enterprise: a log drain to a general HTTP endpoint can use the link’s log address.
Anything else
Section titled “Anything else”Any platform, script or collector can send:
| Address | What it takes |
|---|---|
/v1/intake/logs |
Syslog (RFC 5424, octet-counted or a line each), JSON lines or a JSON array, or plain text. A JSON line names its service in service, app or service_name, its text in message or msg, and its level in level. |
/v1/intake/otlp/v1/logs, …/metrics, …/traces |
OpenTelemetry over HTTP, in protobuf or JSON. /v1/intake/otlp alone takes any of the three. |
/v1/intake/deploys |
{"service": "checkout", "version": "3.8.1", "by": "ci"}, or GitHub’s deployment_status webhook. |
syslog.kiyesi.dev:6514 |
Syslog over TLS, with the token anywhere in each line. |
The token goes in the address (/v1/intake/<token>/logs), as a bearer token, or as the password in the address (https://kiyesi:<token>@api.kiyesi.dev/v1/intake/logs). For example:
curl -X POST https://api.kiyesi.dev/v1/intake/logs \ -H "authorization: Bearer $KIYESI_PLATFORM_TOKEN" \ -H "content-type: text/plain" \ --data-binary @app.logRun the agent beside it
Section titled “Run the agent beside it”The platform cannot tell Kiyesi about your databases or your scheduled jobs. For those, run the agent beside the app, as another process in its container or as a small service of its own. Open the service in Servers, choose Run the agent beside it and type a fresh authenticator code. Kiyesi shows the command, with a token for this service only, once:
KIYESI_API=https://api.kiyesi.dev KIYESI_TOKEN=ksv_... kiyesi agent --containerIn this mode the agent never scans and sends no figures of the machine, which belong to the platform. It sends a heartbeat each minute, the databases listed in its settings (KIYESI_CONFIG names the settings file) every 5 minutes, and each run of a timed job recorded with kiyesi job start and kiyesi job done. From then on the service is watched for silence like a server.
Limits, and what it costs
Section titled “Limits, and what it costs”- Each link keeps up to 6,000 log lines a minute; errors are kept first, and the rest are counted, not stored. Each link may make 1,200 requests a minute and send up to 4 MB at a time.
- Drop lines containing removes lines you do not want before they are stored, such as health checks. Up to 20 rules, plain text, not patterns.
- Each service that sends logs or figures on a day uses credit as a server does: one server-day, with the same daily log allowance. Deploy notices alone use none. Services left out, and services waiting to be added, use none.
Change, replace or remove a link
Section titled “Change, replace or remove a link”In Settings, Managed services, choose Settings beside a link.
- Make a new token stops the old one at once. Paste the new addresses into the platform.
- Setting, changing or removing a signing secret, or the Fly.io metrics token, asks for the code from your authenticator app again. Once a Vercel link has a signing secret, a send without a signature is refused.
- Remove the link stops its token and disconnects its services; their history stays until it expires, as a disconnected server’s does.
- A service is removed like any server: open it and choose Disconnect or Delete. A deleted service is handled like a deleted server: erased for good after 7 days, unless you restore it first.
kiyesi platformslists every link, its services and those waiting, from your terminal.
If something goes wrong
Section titled “If something goes wrong”- Nothing arrives. Check the address has the whole token, and that the platform’s own page for the drain or stream shows no errors. A link shows last sent once anything arrives.
- “This platform token is not valid or was replaced”: the link’s token was replaced or the link removed. Copy the addresses again.
- “The signature does not match the link’s signing secret”: paste the platform’s secret again, or save the field empty to stop checking.
- A service is missing. It may be waiting to be added, left out, or past the 25 services one link adds by itself: see the link in Settings.