Home / Market / servicehealth incident correlation

servicehealth incident correlation

Checks Personalized Service Health (PSH) events and resource-level impacts to determine whether a Google Cloud incident affects a project or its resources, returning an impact verdict with affected resources, published symptoms, and workarounds. Use when asked whether Google Cloud is having an outage or affecting a project or its resources, when looking up a PSH event, or when triaging live Google Cloud workload issues or alerts whose symptoms suggest a possible Google Cloud service disruption—e

skill★ 256290 dlgithubApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: servicehealth-incident-correlation metadata: version: "1.0.0" category: CloudObservabilityAndMonitoring description: >- Checks Personalized Service Health (PSH) events and resource-level impacts to determine whether a Google Cloud incident affects a project or its resources, returning an impact verdict with affected resources, published symptoms, and workarounds. Use when asked whether Google Cloud is having an outage or affecting a project or its resources, when looking up a PSH event, or when triaging live Google Cloud workload issues or alerts whose symptoms suggest a possible Google Cloud service disruption—even if the user does not suspect an outage. Don't use for local code or build errors, routine alerts or automations that neither ask for a service health check nor suggest a platform disruption, configuring PSH alerts, or checking non-project-specific public status.

---

Personalized Service Health incident correlation

Correlates Personalized Service Health (PSH) events (v1) and resource-level impacts (v1beta, Preview) with observed workload symptoms (product, location, resource, time) to return a per-project impact verdict. Read-only: relay published PSH symptoms and workarounds without modifying resources or inventing incident data.

> [!IMPORTANT] > The costliest mistake is a false all-clear. Telling a responder "not > Google" during an active Google Cloud incident misdirects incident response. > When a PSH events call fails or the customer's product is not covered by PSH, > the verdict is INCONCLUSIVE, never NO_IMPACT_IDENTIFIED.

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Prerequisites

gcloud config set project.

{project_id} (`gcloud services enable servicehealth.googleapis.com

--project={project_id}`; ask before enabling). Resource-level impacts (Preview) require enablement at least 24 hours before an incident starts.

gcloud auth application-default login, or GOOGLE_APPLICATION_CREDENTIALS (install the Google Cloud CLI if gcloud is missing). Requires roles/servicehealth.viewer on {project_id} (servicehealth.events.* and servicehealth.impacts.*; custom roles may omit impacts), plus roles/mcp.toolUser for remote MCP.

PSH remote MCP server (https://servicehealth.googleapis.com/mcp, scope https://www.googleapis.com/auth/servicehealth.readonly). Read REST API and gcloud fallback only if the MCP server is unavailable.

Workflow

Step 1: Determine scope

  1. Project ID. Query only a project named in the prompt/conversation, an

alert payload (incident.resource.labels.project_id, else incident.scoping_project_id), a resource path projects/{project_id}/..., or caller context. Never fall back to the host's default gcloud project or GOOGLE_CLOUD_PROJECT: querying the agent's own host project produces false signals for unrelated stacks.

  1. Observed context. Extract any product, location, named resource, and

reference time (alert incident.started_at in Unix seconds, a user-given time with relative times such as "20 minutes ago" converted to UTC, or now).

  1. Missing scope.

unnamed workload project ID, or a question about a specific event without its event ID). When no workload project was named, ask solely for the Google Cloud project ID without issuing an impact verdict (Status: ...) or listing events from any environment, host, or quota project. Broad checks ("Are there any outages?") for a named project need no narrowing by service or region.

human input; when no workload project ID is present, return INCONCLUSIVE right away, naming the missing project ID, without substituting any environment or quota project.

  1. PSH coverage. Whenever web access is available, fetch the live

Supported products and locations page first; otherwise use the PSH coverage snapshot. Both list onboarded products and mark emerging incident (*), IMPACTED relevance (†), and resource-level impact (‡, Preview) support.

Step 2: Retrieve incidents (bounded)

All PSH resources use parent projects/{project_id}/locations/global. Pass pageSize: 100 and follow all nextPageToken pages (list_project_events defaults to pageSize=10 and orders results alphabetically by event_id, not newest-first). Take event resource names verbatim from retrieved events or the prompt.

MCP tools:

events without updates. Each eventImpacts entry carries the granular status of one product/location pair: state (AFFECTED or RESOLVED), startTime, and endTime. Filterable fields (space-joined AND): category, state, update_time, and event_impacts.product.product_name (repeated field: requires : for exact, case-sensitive element match; = fails with invalid filter).

relevance, location, startTime, and endTime are not filterable.

workarounds).

resource-level impacts (Preview Impact resources); scope it per event as in Step 3.

Always pass a bounded filter on list_project_events (and ?filter= or --filter= on REST/gcloud) unless the user explicitly asks for the full event history, since an unfiltered call returns the full historical archive:

| Situation | Event filter | | :--- | :--- | | Live/ongoing check with no symptom start time ("Is anything down right now?") | state=ACTIVE | | Correlating a symptom or alert start time (YYYY-MM-DD..., Unix started_at, or a relative time such as "20 minutes ago" converted to UTC) | state=ACTIVE OR update_time>="{reference_time_minus_24h}" | | Product known (exact, case-sensitive name from coverage.md; combine variants with OR, or omit only the product clause while keeping state or update_time and match productName client-side) | add event_impacts.product.product_name:"{product_name}" | | Recently resolved check (only when asked) | update_time>="{now_minus_n_hours}" |

For example, correlating symptoms that started at 2026-10-16T14:05:00Z on Compute Engine (attribution prefix from Usage Attribution omitted):

# MCP
list_project_events {"parent": "projects/{project_id}/locations/global",
  "filter": "state=ACTIVE OR update_time>=\"2026-10-15T14:05:00Z\"",
  "pageSize": 100}

# gcloud fallback: --filter is required here too
gcloud service-health events list --project={project_id} --location=global \
  --page-size=100 --format=json \
  --filter='state=ACTIVE OR update_time>="2026-10-15T14:05:00Z"'

Quote RFC 3339 timestamps (update_time>="2026-09-01T00:00:00Z"). Save large responses to a temp file outside the repository rather than reading raw JSON into context, and summarize large multi-event listings by product and location.

Step 3: Correlate with what was observed

  1. Product and location. Keep incidents matching the observed product and

location (or all active incidents on a general project check). Regions, zones, multi-regions (such as us, europe, asia), and global are distinct PSH locations, and any hierarchy between them is product-specific:

that exact location for the impact verdict. If no incident matches that exact location, still mention active or recently closed incidents in proximate locations (e.g., other zones in us-west1, its containing region, or a europe multi-region incident) as helpful context without marking the project IMPACTED.

every location that fits the description.

If an eventImpacts entry omits location (e.g., emerging or informational events), check title and description before ruling out a location match.

  1. Event state. Before checking the timeline:

Because closed (MERGED) events receive no further updates, follow parentEvent via get_project_event until reaching a root event that is not MERGED, and replace the merged events with it. Treat the root event as the single source of truth for active/closed state, relevance, impact verdict, linked impacts, and published symptoms/workarounds (never carry forward superseded child symptoms, and assess the root event even when its eventImpacts names an underlying service).

incident, reported with the emerging-incident wording in Step 5.

  1. Timeline. Pick the window, then compare the reference time with it.

matching the observed product and location. The window opens at their earliest startTime, stays open while any of them is AFFECTED, and closes at their latest endTime once all are RESOLVED, even if the event stays ACTIVE elsewhere. Otherwise, or when the matching entries carry no granular status, use the event's startTime to endTime (open while the event is ACTIVE).

symptoms preceded startTime).

(mention only as a possible aggravating factor since startTime).

close** (INCONCLUSIVE); state how long before the reference time it closed.

not match.

  1. Event details. Call get_project_event for surviving matches and read

the latest update's symptom and workaround (unless full history was requested).

  1. Resource-level impacts (informational only). Query

list_project_impacts (or its REST/gcloud beta equivalent) with filter events:"{event.name}" for every surviving incident (the root event, never a MERGED one) and report what it returns, but never derive the verdict from it. Even for products with resource-level impact coverage, product teams can d