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

cloud-monitoring-list-time-series-request

하는 일

이 스킬은 Google Cloud Monitoring에서 지표 데이터를 가져오는 요청을 작성합니다. 차트나 보고서에 필요한 정확한 요청 형식이 필요한 개발자와 분석가를 위한 스킬입니다.

사용하는 경우

  • ✓차트용 지표 데이터를 가져오는 ListTimeSeries 요청이 필요할 때.
  • ✓Cloud Monitoring 지표의 필터와 집계 설정이 필요할 때.
  • ✓지표 이름이 있고 그에 맞는 올바른 REST 매개변수가 필요할 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/cloud-monitoring-list-time-series-request/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“지난 하루 동안 Compute Engine VM의 평균 CPU 사용률을 보여 주는 ListTimeSeries 요청을 작성해 주세요.”

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

작동 방식

지표 세부 정보와 리소스 설정을 읽은 다음, 필터, 시간 범위, 집계 부분을 포함한 요청을 만듭니다. 지표 자체를 찾지는 않습니다.

기술 내용 (원본 SKILL.md)

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

Cloud Monitoring ListTimeSeries Request Generator

Use this skill to translate any Cloud Monitoring metric descriptor into valid, production-ready ListTimeSeries REST API query parameters (name, filter, interval.startTime, interval.endTime, aggregation.*, view).

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:cloud-monitoring-list-time-series-request)" and append agent-skills/1.0 (skill:cloud-monitoring-list-time-series-request) to User-Agent headers.

CRITICAL RULES

  • Mandatory Project ID Clarification: You MUST ensure the GCP Project ID is present in the user prompt, input payload, or environment context (such as via gcloud config get-value project). If the Project ID is missing and cannot be resolved, you MUST ask the user to clarify it before generating or executing ListTimeSeries requests. Do NOT use placeholders for project names.

Workflow

Inspect Metric Metadata

  1. Use Provided Metric Metadata First: If the user's prompt already includes metric metadata such as metric.type, metricKind, valueType, resource types, or label keys, use those values directly instead of calling API tools.
  2. Discover Missing Metadata: If exact metric descriptors including metric.type, metricKind, and valueType are missing or underspecified, resolve the target metric's descriptor using one of these paths:
    • Vague Query: If the prompt is vague, such as asking for VM CPU usage, use the cloud-monitoring-metric-selection skill first to identify the specific metric type.
    • Known Metric Type: If you already have the specific metric type name such as compute.googleapis.com/instance/cpu/utilization, but need its descriptor, call the list_metric_descriptors MCP tool. If the tool is missing, refer to the cloud-monitoring-metric-selection skill to configure the Cloud Monitoring MCP server.
    • Fallback: If the MCP tool cannot be configured, fall back to making a direct Cloud Monitoring API call.
  3. Identify Key Fields: From the retrieved descriptor, identify key schema attributes:
    • type: The Cloud Monitoring metric type string.
    • metricKind: GAUGE, DELTA, or CUMULATIVE.
    • valueType: INT64, DOUBLE, DISTRIBUTION, or BOOL.
    • monitoredResourceTypes: Compatible resource.type strings, for example ["cloudsql_database", "cloudsql_instance"]. If multiple resource types are listed, select the specific resource.type that matches the target granularity of the user's request.

Construct Monitoring Filter

The filter parameter is a mandatory string in Cloud Monitoring syntax that restricts the query to a single metric.type and optional resource and metric labels:

  1. Single Metric Type Restriction: Every filter MUST specify exactly one metric.type clause using an equality operator. For example:

    • metric.type = "compute.googleapis.com/instance/cpu/utilization"
  2. Monitored Resource Type Filter: MUST include the resource.type filter when the target resource granularity is known, preventing collisions across services that share metric types or sub-resources. For example:

    • metric.type = "cloudsql.googleapis.com/database/cpu/utilization" AND resource.type = "cloudsql_database"
  3. Preserve User Literals and IDs: You MUST use literal resource names, IDs, zones, and project parameters provided by the user without alteration. Do NOT override or replace user-specified identifiers with active resources found during metric metadata discovery unless explicitly requested.

  4. Label Type Prefixing:

    • Prefix resource-level dimensions, such as instance ID, zone, project, database ID, or subscription ID, with the resource.labels. prefix. For example:
      • resource.labels.instance_id = "123456789"
      • resource.labels.database_id = "my-project:my-instance"
    • Prefix metric-level dimensions,
자주 묻는 질문

필요한 지표를 찾아 주나요?

아닙니다. 지표 탐색은 metric selection 스킬이 맡으므로, 먼저 지표를 알고 있어야 합니다.

프로젝트 ID가 필요한가요?

네. 요청에는 Google Cloud 프로젝트 ID가 필요하며, 찾지 못하면 스킬이 물어봅니다.

가짜 프로젝트 이름을 쓰나요?

아닙니다. 요청을 만들거나 실행하기 전에 실제 프로젝트 정보가 필요합니다.

상세 정보

작성자의 원본 설명

Generates valid Cloud Monitoring ListTimeSeries requests and aggregation specifications from metric descriptors and resource parameters. Use when asked to create, generate, format, or build ListTimeSeries requests, JSON payloads, filter expressions, or aligner/reducer aggregations for Cloud Monitoring metrics and charts. Don't use for metric discovery or metric selection.

repo: google/skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬