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.

referencesmartfilter.md

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

SmartFilter (Filter Bar) Configuration

SmartFilter is a chart type that creates dropdown/search filters. It requires TWO parts:

  1. A SmartFilter chart in the charts array with filter definitions
  2. declare query_parameters in each panel query that should respond to filters

SmartFilter Chart JSON Structure

{
  "id": "country-filter",
  "name": "Filters",
  "type": "SmartFilter",
  "query": {"apl": ""},
  "filters": [
    {
      "id": "country_filter",
      "name": "Country",
      "type": "select",
      "selectType": "apl",
      "active": true,
      "apl": {
        "apl": "['logs'] | distinct ['geo.country'] | project key=['geo.country'], value=['geo.country'] | sort by key asc",
        "queryOptions": {"quickRange": "1h"}
      },
      "options": [
        {"key": "All", "value": "", "default": true}
      ]
    }
  ]
}

Filter Types

Dynamic APL Dropdown (selectType: "apl")

Populates options from an APL query.

Requirements:

  • apl.apl: Query returning key and value columns
  • apl.queryOptions.quickRange: Time range for the query (e.g., "1h", "7d")
  • options: Must include at least [{"key": "All", "value": "", "default": true}]

Static List Dropdown (selectType: "list")

Uses predefined options only.

{
  "id": "status_filter",
  "name": "Status",
  "type": "select",
  "selectType": "list",
  "active": true,
  "options": [
    {"key": "All", "value": "", "default": true},
    {"key": "2xx", "value": "2"},
    {"key": "4xx", "value": "4"},
    {"key": "5xx", "value": "5"}
  ]
}

Search Filter (type: "search")

Free-text input instead of dropdown:

{
  "id": "trace_id",
  "name": "Trace ID",
  "type": "search",
  "selectType": "list",
  "active": true,
  "options": [{"key": "All", "value": "", "default": true}]
}

Panel Query Integration

Panel queries must declare parameters and handle empty (All) case:

declare query_parameters (country_filter:string = "");
['logs']
| where isempty(country_filter) or ['geo.country'] == country_filter
| summarize count() by bin_auto(_time)

Filter Query for Dynamic Dropdowns

['logs']
| distinct ['geo.country']
| project key=['geo.country'], value=['geo.country']
| sort by key asc

Dependent/Cascading Filters

Filters can depend on other filters by declaring their parameters in the APL query:

{
  "id": "city_filter",
  "name": "City",
  "type": "select",
  "selectType": "apl",
  "active": true,
  "apl": {
    "apl": "declare query_parameters (country_filter:string=\"\");\n['logs']\n| where ['geo.country'] == country_filter\n| distinct ['geo.city']\n| project key=['geo.city'], value=['geo.city']",
    "queryOptions": {"quickRange": "1h"}
  },
  "options": [{"key": "All", "value": "", "default": true}]
}

The city dropdown re-queries when country_filter changes, showing only cities in the selected country.

Layout

Place SmartFilter at y=0, full width (w=12, h=1), shift other panels down:

{"i": "filters", "x": 0, "y": 0, "w": 12, "h": 1}

Best Practices

  • Filter id must match the parameter name in declare query_parameters
  • Use isempty(filter) check so "All" option works (empty string = no filter)
  • One SmartFilter chart can contain multiple filters
  • Place at top of dashboard (y=0) for visibility
  • For cascading filters, order matters: parent filter should come before dependent filters

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 2 hours 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.