Index of every page on this site: llms.txt
All skills
axiomhq avatar

/axiom-build-dashboard

@5b11222 official
by Axiom, Inc.axiomhq/skills18 stars
2
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/axiomhq/skills/axiom-build-dashboard

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencedesign-playbook.md

≈1.8k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Dashboard Design Playbook

Decision-First Design

Each panel must inform a decision. Before adding one, answer:

  1. Audience: oncall (fast triage), team lead (weekly trends, SLO), executive (high-level health).
  2. Decision: "Should I page?" / "Which service?" / "Are we meeting SLOs?" / "What changed after deploy?"
  3. Action: rollback, scale, investigate, escalate, ignore.

No decision → no panel.


The Overview → Drilldown → Evidence Pattern

Structure dashboards in layers:

┌─────────────────────────────────────────────────────────┐
│ OVERVIEW: Is anything broken? (Stats + TimeSeries)      │
│ Answer in <5 seconds                                    │
├─────────────────────────────────────────────────────────┤
│ DRILLDOWN: Where is it broken? (Tables + Pies)          │
│ Identify the component/route/customer                   │
├─────────────────────────────────────────────────────────┤
│ EVIDENCE: What exactly happened? (LogStream)            │
│ Raw events for root cause                               │
└─────────────────────────────────────────────────────────┘

Visual flow: glance overview ("errors are up") → scan drilldown ("on /checkout") → dive into evidence ("null pointer in payment handler").


Audience-Specific Defaults

Oncall Dashboard

  • Time window: 15m–1h
  • Refresh: 30s–1m
  • Focus: Errors, latency spikes, recent changes
  • Stats: Current error rate, p95, traffic
  • Priority: Speed over completeness

Team Health Dashboard

  • Time window: 24h–7d
  • Refresh: 5m–15m
  • Focus: SLO tracking, trends, regression detection
  • Stats: SLO budget remaining, weekly error rate
  • Priority: Context over immediacy

Executive Dashboard

  • Time window: 7d–30d
  • Refresh: 1h
  • Focus: Business metrics, availability, cost
  • Stats: Uptime %, request volume, top customers
  • Priority: Clarity over detail

Anti-Patterns

Too Many Panels

Problem: Cognitive overload, slow rendering, no clear hierarchy. Fix: Limit to 8–12 panels max. If more needed, split into multiple dashboards.

Pie Charts for High Cardinality

Problem: 50+ slices = unreadable rainbow. Fix: Use tables for high cardinality. Pies only for ≤6 categories.

Missing Time Filters (Ad-hoc Queries Only)

Problem: Ad-hoc queries scan entire dataset history. Fix: Always where _time between (...) as first filter in Query tab. Note: Dashboard panel queries don't need this—they inherit time from the UI picker.

Averages Without Percentiles

Problem: Averages hide tail latency that affects real users. Fix: Show p50, p95, p99 together. If only one, show p95 or p99.

Unbounded GROUP BY

Problem: summarize by user_id returns millions of rows. Fix: Always add | top N by ... after high-cardinality groupings.

No Drilldown Path

Problem: Dashboard shows "errors are high" but no way to find where. Fix: Always include breakdown tables that show top contributors.

Stale Data with Fast Refresh

Problem: Dashboard refreshes every 30s but queries 7 days. Fix: Match refresh to time window. Fast refresh = short window.

Generic Panel Names

Problem: "Errors", "Latency", "Traffic" don't explain what you're looking at. Fix: Question-style names: "Error rate by route", "p95 latency trend", "Requests per minute".

Substituting a Different Quantity for the Asked One

Problem: A panel asks for X (an availability ratio, say). X is blocked — parser limit, missing tag, missing metric. The author ships a different quantity Y labelled "Y replaces X."

The disclaimer doesn't propagate to whoever acts on the number. The user reads Y's value and takes action; the panel-level caveat stays on the panel.

Fix: Defer with a Note panel in the same layout slot. See SKILL.md § Compute or Defer for the template.

Common blocked-X cases:

  • MPL parser can't express the ratio — try the blueprint in promql-to-mpl.md § Ratios; if not applicable, defer.
  • Required tag absent + reverse-tag discovery yields no equivalent — defer.
  • Required metric absent + OTel rename rules yield no match — defer.

Silent omission is worse than deferral: six months later, the next author can't tell whether a missing panel was forgotten or deferred for cause. A Note keeps the audit trail in place.


Golden Signals Coverage

Every service dashboard should cover the four golden signals:

Signal What to show Chart type
Traffic Requests/sec over time TimeSeries
Errors Error rate %, error count by type TimeSeries + Table
Latency p50/p95/p99 over time TimeSeries
Saturation CPU, memory, connections, queue depth TimeSeries

If you can't show all four, prioritize: Errors > Latency > Traffic > Saturation.


Time Window Guidelines

Use case Window Bin size
Active incident 15m–1h 10s–1m
Recent regression 6h–24h 5m–15m
Weekly review 7d 1h
Capacity planning 30d 6h–1d

Rule of thumb: Aim for 50–200 data points per series.

  • 1h window ÷ 1m bins = 60 points ✓
  • 24h window ÷ 1m bins = 1440 points ✗ (too dense)
  • 24h window ÷ 15m bins = 96 points ✓

Refresh Rate Guidelines

Dashboard type Refresh
Oncall/incident 30s–1m
Operational 1m–5m
Daily health 5m–15m
Reporting Manual or 1h

Fast refresh on long time windows wastes resources. Match them.


Panel Ordering Principles

  1. Most critical at top-left (Stats row)
  2. Time series below stats (context for the numbers)
  3. Breakdowns in middle (drilldown path)
  4. Raw logs at bottom (evidence, least used)

Visual flow should match investigation flow: notice → narrow → verify.


Naming Conventions

Dashboard Names

  • Include service/scope: "API Gateway - Oncall"
  • Include purpose: "Payment Service - SLO Tracking"
  • Avoid generic: "Dashboard 1", "Main"

Panel Titles

  • Question format: "What is the error rate by route?"
  • Include units: "Latency (ms)", "Traffic (req/s)"
  • Include scope if multi-service: "[API] Error Rate"

Field Aliases

In APL, use project or aliases to create readable column names:

| project Route = route, Errors = error_count, "Error Rate %" = error_rate

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings5d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill provides a comprehensive toolkit for designing, building, and managing Axiom dashboards via the official API. It adheres to security best practices for secret management and network operations. No malicious patterns such as prompt injection, obfuscation, or unauthorized data exfiltration were detected.

  • Socket5d

    1 alert: gptAnomaly

  • Snyk7d

    Risk: MEDIUM · 1 issue

Signed by skilld at 5b11222. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 1 hour ago.

Activeupdated 3 weeks ago
  • axiom
  • dashboards
  • apl
  • mpl
  • metrics
  • monitoring
  • visualization
  • queries
  • logs
  • timeseries

README badge

README badge for axiomhq/skills/axiom-build-dashboard

Builds and configures Axiom dashboards via API, covering APL and metrics/MPL queries, SmartFilters, chart types, and layout composition. Targets Axiom users designing new dashboards, migrating from Splunk or Grafana, or configuring chart options for observability and incident response.

Generated from the current SKILL.md.

Does this skill work with both metrics and events/logs datasets?
Yes. The skill covers two separate blueprints: APL for events/logs datasets and MPL for metrics datasets. Use `scripts/metrics/datasets` to check the dataset kind first.
Can I migrate dashboards from Splunk or Grafana?
Yes. The skill includes workflows for both: extract SPL and translate via spl-to-apl for Splunk, or project the canonical panel spec and translate PromQL for Grafana.
What happens if a requested panel can't be computed?
Replace it with a Note panel documenting the blocker. Substituting a different quantity is never acceptable, even with a disclaimer.
Do I need to include _time filters in dashboard chart queries?
No. Dashboard chart queries inherit the time range from the picker, so _time filters should be omitted. Only ad-hoc queries (Axiom Query tab, axiom-sre) need explicit `where _time between` clauses.
What tools do I use to build and deploy dashboards?
The skill provides scripts including `chart-add` (emit individual charts), `layout-pack` (compose layout), and `dashboard-assemble` (validate and emit the final dashboard JSON).

Generated from the current SKILL.md. These answers refresh after source changes.