返回 Skill 列表
extension
分类: 开发与工程无需 API Key

serverless-slo-definition-monitoring

无服务器应用程序的服务水平目标(SLO)定义与监控。主动激活用于:(1) 为无服务器函数定义SLO,(2) 设置错误预算,(3) 配置SLI指标,(4) 监控延迟百分位数,(5) 可用性跟踪。触发词:"SLO", "SLI", "错误预算", "可用性", "延迟", "百分位", "服务水平", "可靠性"

person作者: jakexiaohubgithub

Serverless SLO Definition and Monitoring

This skill provides expertise in defining and monitoring Service Level Objectives for serverless applications.

Overview

SLOs define the reliability targets for your services, enabling data-driven decisions about feature development vs. reliability work.

Key Concepts

  • SLI (Service Level Indicator): Quantitative measure of service behavior (latency, error rate)
  • SLO (Service Level Objective): Target value for an SLI (99.9% availability)
  • Error Budget: Allowable amount of unreliability (100% - SLO target)
  • Burn Rate: How quickly error budget is being consumed

Common SLIs for Serverless

  1. Availability: Percentage of successful requests
  2. Latency: Response time percentiles (p50, p95, p99)
  3. Throughput: Requests per second
  4. Error Rate: Percentage of failed requests

Example SLO Definitions

slos:
  - name: api-availability
    sli: successful_requests / total_requests
    target: 99.9%
    window: 30d

  - name: api-latency
    sli: requests_under_500ms / total_requests
    target: 95%
    window: 30d

Best Practices

  1. Start with achievable SLOs and tighten over time
  2. Use error budgets to balance velocity and reliability
  3. Alert on burn rate, not individual failures
  4. Review and adjust SLOs quarterly

[Content to be expanded based on plugin_spec_agentient-observability.md specifications]