axiom-apl

작성자: axiomhq

APL 쿼리 언어 레퍼런스 for Axiom. 연산자, 함수, 패턴 및 CLI 사용법을 제공합니다. 전문화된 Axiom 스킬에 의해 작성 시 자동 호출됩니다…

npx skills add https://github.com/axiomhq/cli --skill axiom-apl

Axiom Processing Language (APL)

APL is Axiom's query language for analyzing observability data. This skill provides comprehensive guidance for writing, debugging, and optimizing APL queries.

Quick Reference

Documentation: https://axiom.co/docs/apl/introduction

CLI usage: See references/cli.md

Core Workflow

1. List Available Datasets

axiom dataset list -f json

2. Discover Schema (CRITICAL - Always Do First)

['<dataset>'] | getschema

Never guess field names. The schema shows all fields with their types.

3. Sample Data

['<dataset>'] | limit 10

4. Write Query

See references for operators, functions, and patterns.

APL Syntax Essentials

Dataset Reference

['dataset-name']           // Bracket notation (required for names with dots/dashes)
dataset_name               // Plain identifier (only for simple names)

Field Reference

field_name                 // Plain field
['field.with.dots']        // Bracket notation for dotted fields
['service.name']           // OTel data (see references/otel.md for field mappings)

Basic Query Structure

['dataset']
| where <condition>
| extend <new_field> = <expression>
| summarize <aggregation> by <grouping>
| project <fields>
| sort by <field> desc
| limit 100

Time Handling

Always filter by time first - it's the most selective filter.

// Relative time
| where _time >= ago(1h)
| where _time >= ago(24h) and _time < ago(1h)

// Absolute time
| where _time >= datetime(2024-01-15T10:00:00Z)
| where _time between (datetime(2024-01-15) .. datetime(2024-01-16))

Time functions:

  • ago(timespan) - Relative past time
  • now() - Current time
  • datetime(string) - Parse datetime
  • bin(_time, 5m) - Time bucketing
  • bin_auto(_time) - Automatic bucketing

When NOT to Use

  • Simple field lookup: Use getschema directly instead of invoking the full skill
  • Known query patterns: If you already have a working query, don't re-invoke for syntax help
  • Real-time alerting: Use Axiom Monitors for continuous alerting, not ad-hoc queries

References

axiomhq의 다른 스킬

detect-anomalies
axiomhq
Axiom 데이터셋에서 통계적 분석을 사용하여 이상 징후를 탐지합니다. 비정상적인 패턴, 볼륨 급증, 이상치 또는 새로운 오류 유형을 찾을 때 사용하세요.
official
explore-dataset
axiomhq
Axiom 데이터셋을 탐색하여 스키마, 필드, 볼륨 및 패턴을 이해합니다. 새 데이터셋을 발견하거나 데이터 구조를 조사할 때 사용합니다.
official
find-traces
axiomhq
Axiom에서 OpenTelemetry 분산 트레이스를 분석합니다. 트레이스 ID를 조사하거나, 기준(오류, 지연 시간, 서비스)별로 트레이스를 찾거나, 디버깅할 때 사용하세요…
official
gilfoyle
axiomhq
당신이 할 수 없는 일을 해내는 SRE 에이전트. 관측 가능성 스택을 조회합니다. 근본 원인을 찾아냅니다. 당황하지 않습니다. 추측하지 않습니다. 당신의 감정에 신경 쓰지 않습니다. 사용…
official
axiom-sre
axiomhq
전문 SRE 조사관으로서 인시던트 및 디버깅을 수행합니다. 가설 기반 방법론과 체계적 트라이지를 사용합니다. 사용 가능 시 Axiom 관찰 가능성을 쿼리할 수 있습니다.…
official
building-dashboards
axiomhq
API를 통해 Axiom 대시보드를 설계하고 구축합니다. 차트 유형, APL 및 메트릭/MPL 쿼리 패턴, SmartFilters, 레이아웃, 구성 옵션을 다룹니다. 다음 경우에 사용하세요…
official
controlling-costs
axiomhq
Axiom 쿼리 패턴을 분석하여 사용되지 않는 데이터를 찾고, 비용 최적화를 위한 대시보드와 모니터를 구축합니다. Axiom 비용 절감, 미사용 데이터 찾기 요청 시 사용하세요.
official
query-metrics
axiomhq
스크립트를 통해 Axiom MetricsDB에 메트릭 쿼리를 실행합니다. 사용 가능한 메트릭, 태그 및 태그 값을 탐색합니다. 메트릭 쿼리, 메트릭 탐색 등을 요청받았을 때 사용하세요.
official