observability-manage-slos by elastic/agent-skills
npx skills add https://github.com/elastic/agent-skills --skill observability-manage-slos在 Elastic Observability 中创建和管理 SLOs。SLOs 使用根据 Elasticsearch 数据计算出的服务等级指标 (SLIs) 来跟踪服务性能,以衡量其是否达到可度量的目标。
SLO 操作通过 Kibana API 进行。使用 API 密钥或基本认证进行身份验证:
# API 密钥
curl -H "Authorization: ApiKey <base64-encoded-key>" -H "kbn-xsrf: true" <KIBANA_URL>/api/observability/slos
# 基本认证
curl -u "$KIBANA_USER:$KIBANA_PASSWORD" -H "kbn-xsrf: true" <KIBANA_URL>/api/observability/slos
对于非默认空间,请在路径前添加前缀:/s/<space_id>/api/observability/slos。
在所有 POST、PUT 和 DELETE 请求中必须包含 kbn-xsrf: true 头。
| 类型 | API 值 | 使用场景 |
|---|---|---|
| 自定义 KQL | sli.kql.custom |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 原始日志 — 使用 KQL 查询计算良好/总数 |
| 自定义指标 | sli.metric.custom | 指标字段 — 使用聚合的公式 |
| 时间片指标 | sli.metric.timeslice | 指标字段 — 每个时间片的阈值检查 |
| 直方图指标 | sli.histogram.custom | 直方图字段 — 范围/值计数 |
| APM 延迟 | sli.apm.transactionDuration | APM — 延迟阈值 |
| APM 可用性 | sli.apm.transactionErrorRate | APM — 成功率 |
| Synthetics 可用性 | sli.synthetics.availability | Synthetics 监视器 — 正常运行时间百分比 |
objective.target 是一个介于 0 和 1 之间的小数(例如 0.995 表示 99.5%)。budgetingMethod: "timeslices"。transform 和 ingest 角色。POST .../slos/{id}/_reset。groupBy。每周安装量
109
代码仓库
GitHub 星标数
89
首次出现
10 天前
安全审计
已安装于
cursor99
opencode93
gemini-cli93
github-copilot93
codex93
amp92
Create and manage SLOs in Elastic Observability. SLOs track service performance against measurable targets using service-level indicators (SLIs) computed from Elasticsearch data.
SLO operations go through the Kibana API. Authenticate with either an API key or basic auth:
# API key
curl -H "Authorization: ApiKey <base64-encoded-key>" -H "kbn-xsrf: true" <KIBANA_URL>/api/observability/slos
# Basic auth
curl -u "$KIBANA_USER:$KIBANA_PASSWORD" -H "kbn-xsrf: true" <KIBANA_URL>/api/observability/slos
For non-default spaces, prefix the path: /s/<space_id>/api/observability/slos.
Include kbn-xsrf: true on all POST, PUT, and DELETE requests.
| Type | API value | Use case |
|---|---|---|
| Custom KQL | sli.kql.custom | Raw logs — good/total using KQL queries |
| Custom metric | sli.metric.custom | Metric fields — equations with aggregations |
| Timeslice metric | sli.metric.timeslice | Metric fields — per-slice threshold check |
| Histogram metric | sli.histogram.custom | Histogram fields — range/value_count |
| APM latency | sli.apm.transactionDuration | APM — latency threshold |
| APM availability | sli.apm.transactionErrorRate | APM — success rate |
| Synthetics availability | sli.synthetics.availability | Synthetics monitors — uptime percentage |
objective.target is a decimal between 0 and 1 (for example 0.995 for 99.5%).budgetingMethod: "timeslices".transform and ingest roles.POST .../slos/{id}/_reset when an SLO is stuck or after index mapping changes.groupBy manually.Weekly Installs
109
Repository
GitHub Stars
89
First Seen
10 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
cursor99
opencode93
gemini-cli93
github-copilot93
codex93
amp92
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
96,200 周安装
Symfony速率限制:异步工作流、重试机制与故障传输的完整解决方案
169 周安装
2026现代前端设计指南:OKLCH色彩、CSS滚动动画与AI极简主义
152 周安装
使用 QuickChart.io 生成极简风格图表 | 支持 CSV/JSON 数据输入,多种图表类型
106 周安装
Claude技能创建器指南:如何构建高效AI技能,扩展Claude专业能力
146 周安装
OpenAPI 转 TypeScript 工具:自动生成接口与类型守卫,提升API开发效率
168 周安装
Cloudflare 开发平台完整指南:API、Workers、存储、AI与安全产品决策树
132 周安装