Loading...
Loading...
Compare original and translation side by side
skill: axiom-sre
skill: building-dashboardsdashboard-listdashboard-getdashboard-createdashboard-updatedashboard-deleteaxiom-audit['axiom-audit']
| where _time > ago(1h)
| summarize count() by action
| where action in ('usageCalculated', 'runAPLQueryCost')axiom-audit-logs-viewaudit-logsusageCalculatedaxiom-history['axiom-history'] | where _time > ago(1h) | take 1<deployment><audit-dataset>-hheadtailjqaxiom-queryskill: axiom-sre
skill: building-dashboardsdashboard-listdashboard-getdashboard-createdashboard-updatedashboard-deleteaxiom-audit['axiom-audit']
| where _time > ago(1h)
| summarize count() by action
| where action in ('usageCalculated', 'runAPLQueryCost')axiom-audit-logs-viewaudit-logsusageCalculatedaxiom-history['axiom-history'] | where _time > ago(1h) | take 1<deployment><audit-dataset>-hheadtailjqaxiom-query| User request | Run these phases |
|---|---|
| "reduce costs" / "find waste" | 0 → 1 → 4 |
| "set up cost control" | 0 → 1 → 2 → 3 |
| "deploy dashboard" | 0 → 2 |
| "create monitors" | 0 → 3 |
| "check for drift" | 0 only |
| 用户需求 | 运行对应阶段 |
|---|---|
| "降低成本" / "查找浪费" | 0 → 1 → 4 |
| "设置成本控制" | 0 → 1 → 2 → 3 |
| "部署仪表盘" | 0 → 2 |
| "创建监控" | 0 → 3 |
| "检查偏移" | 仅0 |
undefinedundefined
If found, fetch with `dashboard-get` and compare to `templates/dashboard.json` for drift.
---
若找到,使用`dashboard-get`获取并与`templates/dashboard.json`对比,检查是否存在配置偏移。
---scripts/baseline-stats -d <deployment> -a <audit-dataset>scripts/baseline-stats -d <deployment> -a <audit-dataset>scripts/deploy-dashboard -d <deployment> -a <audit-dataset>reference/dashboard-panels.mdscripts/deploy-dashboard -d <deployment> -a <audit-dataset>reference/dashboard-panels.mdscripts/list-notifiers -d <deployment>-nscripts/list-notifiers -d <deployment>-nscripts/create-monitors -d <deployment> -a <audit-dataset> -c <contract_tb> [-n <notifier_id>]notifyByGroup: truereference/monitor-strategy.mdscripts/create-monitors -d <deployment> -a <audit-dataset> -c <contract_tb> [-n <notifier_id>]notifyByGroup: truereference/monitor-strategy.mdscripts/baseline-stats| Priority | Meaning |
|---|---|
| P0⛔ | Top 3 by ingest OR >10% of total — MANDATORY |
| P1 | Never queried — strong drop candidate |
| P2 | Rarely queried (Work/GB < 100) — likely waste |
scripts/baseline-stats| 优先级 | 含义 |
|---|---|
| P0⛔ | 摄入总量排名前三 或 占总摄入的10%以上 — 必须处理 |
| P1 | 从未被查询过 — 强烈建议删除 |
| P2 | 极少被查询(Work/GB < 100) — 大概率为浪费数据 |
scripts/analyze-query-coverage -d <deployment> -D <dataset> -a <audit-dataset>appservicekubernetes.labels.appscripts/analyze-query-coverage -d <deployment> -D <dataset> -a <audit-dataset> -f <field>(empty)kubernetes.namespace_namescripts/analyze-query-coverage -d <deployment> -D <dataset> -a <audit-dataset>appservicekubernetes.labels.appscripts/analyze-query-coverage -d <deployment> -D <dataset> -a <audit-dataset> -f <field>(empty)kubernetes.namespace_namereference/analysis-report-template.mdreference/analysis-report-template.mdundefinedundefined
**Note:** Running `create-monitors` twice creates duplicates. Delete existing monitors first if re-deploying.
---
**注意:** 重复运行`create-monitors`会创建重复监控。若重新部署,请先删除现有监控。
---| Field | Description |
|---|---|
| |
| Hourly ingest in bytes |
| Hourly query cost |
| Dataset name |
| Org ID |
| User email |
| 字段 | 描述 |
|---|---|
| |
| 每小时数据摄入字节数 |
| 每小时计费查询成本 |
| 数据集名称 |
| 组织ID |
| 用户邮箱 |
| Dataset type | Primary field | Alternatives |
|---|---|---|
| Kubernetes logs | | |
| Application logs | | |
| Infrastructure | | |
| Traces | | |
| 数据集类型 | 主字段 | 替代字段 |
|---|---|---|
| Kubernetes日志 | | |
| 应用日志 | | |
| 基础设施 | | |
| 链路追踪 | | |
| Contract | TB/day | GB/month |
|---|---|---|
| 5 PB/month | 167 | 5,000,000 |
| 10 PB/month | 333 | 10,000,000 |
| 15 PB/month | 500 | 15,000,000 |
| 合约 | TB/天 | GB/月 |
|---|---|---|
| 5 PB/月 | 167 | 5,000,000 |
| 10 PB/月 | 333 | 10,000,000 |
| 15 PB/月 | 500 | 15,000,000 |
| Signal | Action |
|---|---|
| Work/GB = 0 | Drop or stop ingesting |
| High-volume unqueried values | Sample or reduce log level |
| Empty values from system namespaces | Filter at ingest or accept |
| WoW spike | Check recent deploys |
| 信号 | 操作 |
|---|---|
| Work/GB = 0 | 删除或停止摄入 |
| 高数据量但未被查询的值 | 采样或降低日志级别 |
| 系统命名空间的空值 | 在摄入时过滤或接受现状 |
| 周环比峰值 | 检查近期部署情况 |