building-dashboards
Skill này làm gì
Skill này xây dựng dashboard trong Axiom, công cụ ghi log và giám sát, với các biểu đồ trả lời những câu hỏi cụ thể. Dành cho kỹ sư và nhà phân tích cần dashboard rõ ràng, kể cả dashboard chuyển từ Splunk hoặc Grafana.
Khi nào nên dùng
- ✓Khi bạn muốn một dashboard mới cho một nhóm hoặc một dịch vụ.
- ✓Khi bạn chuyển một dashboard từ Splunk hoặc Grafana sang Axiom.
- ✓Khi bạn cần chọn loại biểu đồ và thiết lập tùy chọn cho một panel dashboard.
Liên kết skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/building-dashboards/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xây dựng một dashboard Axiom cho dịch vụ thanh toán của chúng tôi, hiển thị tỷ lệ lỗi và các yêu cầu chậm.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill bắt đầu bằng cách hỏi dashboard dành cho ai và hỗ trợ những quyết định nào. Nó kiểm tra các trường dữ liệu trong Axiom, chọn biểu đồ phù hợp cho từng câu hỏi, rồi xây dựng dashboard qua API.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Building Dashboards
Philosophy
- Decisions first. Every panel answers a question that leads to an action.
- Overview → drilldown → evidence. Start broad, narrow on click/filter, end with raw logs.
- Rates and percentiles over averages. Averages hide problems; p95/p99 expose them.
- Simple beats dense. One question per panel. No chart junk.
- Validate with data. Never guess fields—discover schema first.
- Compute what's asked, or defer. If a panel can't be computed, replace it with a
Notedocumenting the blocker. Never substitute a different quantity, even disclosed. See Compute or Defer.
Entry Points
| Starting from | Workflow |
|---|---|
| Vague description | Intake → check dataset kind → design blueprint (APL or MPL) → queries per panel → deploy |
| Template | Pick template → customize dataset/service/env → deploy |
| Splunk dashboard | Extract SPL → translate via spl-to-apl → map to chart types → deploy |
| Grafana dashboard | Project canonical panel spec (expr, legendFormat, unit, title, description) → translate PromQL → map chart types → deploy. See reference/grafana-migration.md. |
| Exploration | Use axiom-sre to discover schema/signals → productize into panels |
Intake: What to Ask First
Audience & decision
- Oncall triage? (fast refresh, error-focused)
- Team health? (daily trends, SLO tracking)
- Exec reporting? (weekly summaries, high-level)
Scope
- Service, environment, region, cluster, endpoint?
- Single service or cross-service view?
Dataset kind. Run
scripts/metrics/datasets <deploy>and checkkind.otel:metrics:v1→ metrics dataset, follow the Metrics path.- anything else → events/logs dataset, follow the APL path.
Never run
getschemaon a metrics dataset. It returns 0 rows without error.APL path: discover fields with
['dataset'] | where _time between (ago(1h) .. now()) | getschema. Continue to steps 4–5.Metrics path:
scripts/metrics/metrics-spec <deploy> <dataset>— required before any MPL query.scripts/metrics/metrics-info <deploy> <dataset> metrics | tags | tags <tag> valuesfor discovery.- If discovery is empty, retry with
--start7 days ago (sparse metrics). find-metrics <value>searches tag values, not metric names — use it only with a known entity name.- Skip to the Metrics/MPL Blueprint.
Golden signals (APL path)
- Traffic: requests/sec, events/min
- Errors: error rate, 5xx count
- Latency: p50, p95, p99 duration
- Saturation: CPU, memory, queue depth, connections
Drilldown dimensions (APL path)
- What do users filter/group by? (service, route, status, pod, customer_id)
Dashboard Blueprint
Pick the blueprint matching the dataset kind.
APL Blueprint (events/logs datasets)
1. At-a-Glance (Statistic panels)
Single numbers that answer "is it broken right now?"
- Error rate (last 5m)
- p95 latency (last 5m)
- Request rate (last 5m)
- Active alerts (if applicable)
2. Trends (TimeSeries panels)
Time-based patterns that answer "what changed?"
- Traffic over time
- Error rate over time
- Latency percentiles over time
- Stacked by status/service for comparison
3. Breakdowns (Table/Pie panels)
Top-N analysis that answers "where should I look?"
- Top 10 failing routes
- Top 10 error messages
- Worst pods by error rate
- Request distribution by status
4. Evidence (LogStream + SmartFilter)
Raw events that answer "what exactly happened?"
- LogStream filtered to errors
- SmartFilter for service/env/route
- Key fields projected for readability
Metrics/MPL Blueprint (metrics datasets)
Use align to $__interval using … for bucketing — $__interval is supplied by the dashboard runtime. Hard-coded windows over- or under-resolve. Validate every pipeline with scripts/metrics/mpl-validate-chart; both it and chart-add --mpl reject inline time ranges ([1h..]).
Exception: for sparse metrics where $__interval rounds to empty buckets, a fixed wider window (e.g. 1h) is acceptable; document why on the chart.
1. At-a-Glance (Statistic panels)
Current values — "what's the state right now?"
- Use
group using avg(gauges) orgroup using last(counters). - Read the metric's
unitviametrics-info … metrics <m> infoand pass it to `chart-a
Câu hỏi thường gặp
Nó có chuyển được dashboard Splunk hoặc Grafana không?
Có. Nó có các bước dịch các truy vấn Splunk và panel Grafana sang truy vấn Axiom.
Vì sao nó ưu tiên phân vị thay vì trung bình?
Trung bình có thể che giấu vấn đề, còn các phân vị như p95 và p99 cho thấy các giá trị chậm bất thường.
Nếu một panel không tính được thì sao?
Nó thay panel bằng một ghi chú giải thích trở ngại, thay vì hiển thị một con số khác.
Chi tiết
Mô tả gốc của tác giả
Designs and builds Axiom dashboards via API. Covers chart types, APL and metrics/MPL query patterns, SmartFilters, layout, and configuration options. Use when creating dashboards, migrating from Splunk, or configuring chart options.
repo: openclaw/clawhub
Độ phổ biến
- Sao GitHub
- 9.5k
- Vị trí xếp hạng
- #12228
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
axiom-alerting
9.5kGiúp agent của bạn tạo và quản lý monitor cùng các tuyến thông báo của Axiom qua API Axiom, và kiểm tra cảnh báo hoạt động đúng như mong đợi.
axiom-sre
9.5kGiúp agent của bạn điều tra sự cố và lỗi production từng bước, kiểm tra mỗi giả thuyết với log Axiom trước khi đưa ra kết luận.
controlling-costs
9.5kGiúp agent của bạn tìm dữ liệu không dùng đến trong Axiom và xây dựng dashboard cùng monitor để theo dõi và giảm chi phí ghi log.
convex-acquire-domain
9.5kGiúp agent của bạn tìm và mua tên miền cho app Convex qua Convex, rồi kết nối với app, chỉ sau khi bạn chọn tên và đồng ý.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.