BetaOwlglass is in private beta. Get started.
owlglassBeta

Docs · beta

Owlglass docs

Logs, metrics, traces, checks 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. Get started; 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 and sends entries to Owlglass with an ingest key that only ingests. It keeps the journal's fields: the unit, the command, the transport and a program's own KEY=value fields, up to 32 a line. 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 or 7d, Unix seconds, or an RFC 3339 time
qText the message contains, ignoring case
fieldkey=value, matched exactly; repeat for more (up to 8): host, pid, unit or a program's own field
limitHow many entries

A query reads the hours of its range, newest first, and stops when it has limit entries or reaches its read budget, saying so (truncated). Each closed hour has a word index beside it, so a search by text (three characters or more) or by field skips the hours that can't match, with the same answers; skipped says how many. To page back, pass the answer's next_until as until.

GET /v1/logs/volume counts matching lines over time by level. GET /v1/logs/fields lists the fields the matching lines carry, or with name and top one field's top values with their counts. Also: GET /v1/services (what you can see) and GET|PUT /v1/retention/<service>.

Metrics and queries

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. 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?job= gives a service's metrics now. GET /v1/metrics/query?job=&name=&since= takes a metric's name or a query in PromQL's core: selectors with = and !=, rate(…[5m]) and increase(…[1h]), sum, avg, min, max and count with by (…), and + - * / between series or with numbers. A query covers at most 7 days and 500 series. Not yet: regex matchers, offset, histograms' quantiles.

Traces

Send spans by OTLP/HTTP, protobuf or JSON, to POST /v1/traces with an ingest key; the resource's service.name is the service. Spans are kept in the service's hours with its retention, and read with the same access as its logs.

GET /v1/traces lists root spans newest first, by service, name, attributes or errors. GET /v1/traces/<id> gives every span in start order with its depth and offset, for a waterfall across services, and the log lines whose trace_id field names it. Beta: no sampling and no service map yet.

Saved views

A view is a title, a time range and 1 to 12 panels, each a log search, a log volume chart or a metric query on one of the organisation's services: GET /v1/orgs/<org>/views, GET|PUT|DELETE /v1/orgs/<org>/views/<name>, and GET …/<name>/run for every panel's data. Running a view reads as the caller, so it shows each person only what they can see. Any member saves a view or changes their own; changing another's is an admin's.

Alerts, checks and on-call

A rule watches a metric's value, rate or increase against a threshold, a ratio of two counters over a window (“bounce rate over 5% in an hour”), or any query /v1/metrics/query takes (func: "query"), its worst series deciding. 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, and to a webhook if you set one. Tickets go only to the inbox: they should be seen, not wake anyone. Silence a firing rule for a while; up to 4 hours is an admin's, longer an owner's.

Synthetic checks. PUT /v1/checks/<name> {service, url, expect_status?, contains?, timeout_secs?} has Owlglass call a public HTTPS URL each round and keep probe_success, probe_duration_seconds and probe_http_status_code as the service's metrics, so alerts, charts and views take them. Beta: checks run from one location.

GET /v1/alerts, PUT|DELETE /v1/alerts/<name>, POST /v1/alerts/<name>/silence, GET /v1/checks, PUT /v1/orgs/<org>/oncall. Not yet: on-call schedules, escalation, SLOs.

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), checks, 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_services, service_healthServices you can see, and each one's health: up, errors in the hour, alerts firingfree
query_logs, tail_logsLines by service, level, time, text and exact fields, newest first; the latest linesfree
log_volume, log_fieldsMatching lines over time by level; the fields they carry and a field's top valuesfree
list_traces, get_traceSlow or failed requests; one trace as a waterfall, with its log linesfree
query_metricsA service's metrics now, or any PromQL query over timefree
list_alerts, list_checksThe alert rules and what's firing; synthetic checks and their last resultfree
list_views, get_view, run_viewThe organisation's saved views, and one's panels with their datafree
save_view, delete_viewSave a view of log searches, volume and metric charts; remove onelimits
set_retentionA service's retention, inside the org's limitslimits
set_alertAn alert that opens a ticket and pages nobodylimits
set_check, delete_checkWatch a public URL from outsidelimits
silence_alertQuiet a firing alert for up to 4 hourslimits
set_alert, delete_alertAn alert that pages someone: add, change or removenod
silence_alertA silence longer than 4 hoursnod
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_owlglass {} opens every service with its health; view_service_logs {service} opens one: its logs with live tail and fields, metrics, traces, alerts, checks and saved views, every button a tool call as the signed-in person.