본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)22k · #10316

google-cloud-slo-alert-configuration

하는 일

이 스킬은 Google Cloud에서 서비스 수준 목표(SLO) 알림을 설정하도록 돕습니다. 서비스가 안정성 목표에 못 미칠 때 알림을 받고 싶은 팀을 위한 스킬입니다.

사용하는 경우

  • ✓Google Cloud에서 서비스 수준 목표(SLO)를 설정하고 싶을 때.
  • ✓App Hub에 등록된 서비스나 이름이 있는 리소스에 대한 SLO 알림이 필요할 때.
  • ✓SLO 기반 알림 정책을 위한 Terraform 코드가 필요할 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-slo-alert-configuration/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-slo-alert-configuration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“checkout 서비스가 목표 신뢰도 아래로 떨어지면 팀이 알 수 있도록 SLO 알림을 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

서비스 범위, 서비스 수준, 측정할 지표, 알림 조건을 다루는 네 단계 마법사로 안내합니다. 그다음 Terraform 설정을 작성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

SLO Alert Configuration Setup Wizard

This skill guides the user through a structured conversation to configure Cloud Monitoring PromQL-based Service Level Objective (SLO) alerting policies on Google Cloud in Terraform. Your role is to act as a setup wizard that conceptually models the 4 key components of an SLO API (Service Scope, Service Level, SLI, and Alert Condition), gathers the requirements, and outputs a Terraform configuration.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-slo-alert-configuration)" and append agent-skills/1.0 (skill:google-cloud-slo-alert-configuration) to User-Agent headers.

CRITICAL RULES

  • Structured Conversation: You MUST follow the 4-step wizard workflow below.

  • Gather Missing Information: Evaluate all 4 steps below first. Ask the user for all missing information across all steps in a single response.

    • DO NOT stop after finding the first missing piece of information.

    • DO NOT use the ask_question tool. You must ask questions using plain text in your response and end your turn to wait for the user to reply.

    • DO NOT write the Terraform configuration if information is missing.

  • Skip What Is Known: If the user has already provided information for a step in their previous messages or initial prompt DO NOT ask them for it. Move to the next missing piece of information. If ALL information for Steps 1-4 is provided, call write_to_file to generate the Terraform configuration without asking for permission to proceed.

  • Provide Best Practices: Whenever you ask the user a question, you MUST explicitly state the recommended "Best Practice".

  • Best Practice Shortcut: If the user asks for "best practices" or similar, do not overwrite their explicit inputs. SKIP all remaining data gathering and keep any specific targets or custom metrics they provided. For all fields left blank, apply the recommended defaults defined in the "SRE Best Practice Suggestion" of each step.

  • User Labels: Include a user_labels block in all google_monitoring_alert_policy resources to track policies created by this skill:

    user_labels = {
      created-with-google-skill = "google-cloud-slo-alert-configuration"
    }
    
  • Terraform Output: Write the generated observability configuration ONLY as Terraform (.tf) files using the google_monitoring_alert_policy resource and condition_prometheus_query_language resources.

  • Alert Strategy: ALWAYS include an alert_strategy block with an auto_close setting. Leave notification_channels empty unless the user provides one. Provide plain-English explanations of the PromQL math before finalizing the conversation.


SETUP WIZARD WORKFLOW

Step 1: Define ServiceScope

  1. Check Context: Identify target resource, service, workload, or application the user wants to monitor. If you already know, proceed. Otherwise ask the user to identify it.

  2. Autonomous Investigation: If the user specified a project or general service name without providing specifics, autonomously use gcloud to discover the target services in their environment. If multiple services or workloads are discovered, list all of them and suggest applying SLO ONLY to the most critical backend services as a best practice.

    If you struggle to identify potential resources, ask the user to specify.

  3. Identify Underlying Infrastructure: To resolve the correct PromQL metric, you MUST know the underlying Google Cloud resource type.

    • If the user only provides a logical name or an App Hub Service/Workload name such as projects/.../services/frontend or projects/.../workloads/backend, you still need to know the underlying infrastructure.
    • If the prompt provides the underlying infrastructure, use that information. Do NOT attempt to discover it.
    • If you don't know the underlying infrastruc
자주 묻는 질문

일반 알림 정책도 다루나요?

아닙니다. SLO 알림만 다루므로 일반 알림에는 다른 스킬을 쓰세요.

정보를 어떻게 모으나요?

한 번에 하나씩 묻지 않고, 빠진 세부 정보를 한 메시지로 모두 요청합니다.

결과물은 무엇인가요?

SLO 알림 정책을 위한 Terraform 설정입니다.

상세 정보

작성자의 원본 설명

Configures Cloud Monitoring PromQL-based Service Level Objective (SLO) alerting policies on Google Cloud for resources registered in App Hub or individually specified. Generates Terraform output. Use when the user asks to configure an SLO or Service Level Objective. Don't use for standard alerting policies.

repo: google/skills

인기도

GitHub 스타
22k
순위
#10316
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬