一键导入
o11ylite
Interact with the O11yLite observability platform for traces, logs, and metrics
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interact with the O11yLite observability platform for traces, logs, and metrics
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | o11ylite |
| description | Interact with the O11yLite observability platform for traces, logs, and metrics |
O11yLite is a lightweight observability platform for traces, logs, and metrics.
Read O11YLITE_URL env var for the base URL (e.g., http://localhost:3000). If not set, ask the user for their o11ylite hostname.
Run: python3 <skill-dir>/auth.py $O11YLITE_URL
If O11YLITE_API_KEY is set, the script uses it directly (no browser). Otherwise it runs an OAuth flow that opens the user's browser.
The script prints JSON to stdout:
{"token": "...", "base_url": "...", "inertia_version": "..."}
Use the token on every request: Authorization: Bearer <token>
If a page route returns 409, re-run with --refresh to get a fresh Inertia version.
trace_id.attr. (e.g., attr.http.method, attr.service.version).service, name, trace_id, span_id, span.duration_ms, span.status_code, timestamp, meta.signal_type.meta.signal_type is "span", "span_event", or "log".| Task | Read this file |
|---|---|
| Query events, logs, or traces | docs/events-query.md |
| Query metrics | docs/metrics-query.md |
| Manage alert rules | docs/alert-rules.md |
| Manage notebooks | docs/notebooks.md |
JSON API routes (/api/*) — standard REST. Send/receive JSON.
Page routes (alerts, notebooks) — use the Inertia protocol:
GET <path> with X-Inertia: true, X-Inertia-Version: <inertia_version>, Authorization: Bearer <token>. Response is JSON: {"component": "...", "props": {...}}. Data is in props.POST/PUT/DELETE <path> with X-Ring-Anti-Forgery: true, Content-Type: application/json, Authorization: Bearer <token>. Response is 303 redirect. Follow it with a GET (Inertia headers) to read back the result.Useful discovery endpoints (no special headers, just Bearer auth):
GET /api/services — list all known service namesGET /api/events/fields — list all queryable event fields with typesGET /api/metrics — list all available metricsError shape: {"error": "<code>", "error_description": "<message>"}