BetaOwlglass is in private beta. Join the waitlist.
owlglassBeta

Docs · beta

Owlglass docs

Logs, metrics and alerts for your services, through one API and one MCP server. What's here is built and tested today.

Getting access

Owlglass is in private beta. Join the waitlist; when your place opens you get an organisation, the API's address and sign-in for your people. Every call carries an OAuth 2 bearer token for a person or their agent, and the organisations that person belongs to decide what they can see. Someone in no organisation sees nothing.

Examples below use $OWLGLASS for the API address in your invitation and $TOKEN for a bearer token.

Shipping logs

A small shipper runs beside your services. It follows the systemd journal (journalctl -o json -f) and sends entries to Owlglass with an ingest key that only ingests. The shipper keeps no state of its own: it asks Owlglass where to resume, and Owlglass records a batch's journal cursor only after its entries are safely on disk. Across restarts of either side, nothing is skipped; at worst a batch arrives twice.

While Owlglass is unreachable the shipper stops reading and the journal is the buffer, so the shipper's memory stays at one batch. Entries timed far from now are refused.

Querying logs

GET /v1/logs answers entries newest first.

ParameterMeaning
serviceOne service, by name
levelThe least severe level wanted: err gives emerg through err
since, untilAn age like 15m, Unix seconds, or an RFC 3339 time
qText the message contains, ignoring case
limitHow many entries

A query reads the hours of its range, newest first, and stops when it has limit entries or after 256 MiB, saying so (truncated). To page back, pass the answer's next_until as until. Also: GET /v1/services (what you can see), GET /v1/logs/volume and GET|PUT /v1/retention/<service>.

Metrics

Owlglass scrapes your services' /metrics endpoints in the Prometheus text format on a timer, so a service that already exposes Prometheus metrics needs no change. Every target also gets up: a target that stops answering is the first thing worth an alert. Each target is capped at 2,000 series so none can grow the store without bound, and metrics follow the same retention as logs.

GET /v1/metrics/latest gives a service's metrics now; GET /v1/metrics/query?job=&name=&since= one over time.

Alerts and on-call

A rule watches a metric against a threshold, or a ratio of two counters' increases over a window (“bounce rate over 5% in an hour”), optionally grouped by a label so the worst group decides, and leaving out groups with too little traffic. A counter that drops is treated as a reset.

A rule either pages or opens a ticket. A page goes to everyone on the organisation's on-call list, by email and as an inbox notification, to an event stream that apps and agents can follow, and to a webhook if you set one. Tickets go only to the inbox: they should be seen, not wake anyone. Sends retry step by step without repeating an email that already went out.

GET /v1/alerts, PUT|DELETE /v1/alerts/<name>, POST /v1/alerts/<name>/silence, PUT /v1/orgs/<org>/oncall.

Organisations and roles

An organisation owns services by name or by prefix (payments-*); a service belongs to at most one. Owners, admins, deployers and members all read its services. Admins set retention inside the organisation's limits (3 to 30 days by default) and alerts that don't page. Owners change members and approve anything that pages. If a permission check can't be completed, the answer is a refusal, never an open door.

Agents and MCP

Owlglass has an MCP server at /mcp. Each tool runs the API's own operation as the caller, with the agent's own token, so an agent sees exactly what its person sees and nothing more. Levels are enforced by the API, not by the MCP layer.

ToolWhat it doesLevel
list_servicesServices you can see, how much each logs, how long it's keptfree
tail_logsThe latest lines of a servicefree
query_logsLines by service, level, time range and text, newest firstfree
query_metricsA service's metrics now, or one over timefree
list_alertsThe alert rules, and what's firingfree
set_retentionA service's retention, inside the org's limitslimits
set_alertAn alert that opens a ticket and pages nobodylimits
silence_alertQuiet a firing alert for up to 4 hourslimits
set_alertAn alert that pages someone: add or changenod
delete_alertRemove an alert that pagesnod
set_retentionRetention outside the limits: shorter deletes, longer costsnod
set_oncallWho is woken when an alert pagesnod

When an action needs a nod, the API answers “needs approval by an owner of <org>” with a challenge naming the exact action. The owner approves on their own device; the agent retries with the approval attached. An agent can never approve for itself.

Views. view_service_logs {service} shows a person a service's logs, headline metrics, six-hour charts of up and memory, and its alerts.