webhooks.xyz

Examples / Cloud events: AWS, Google Cloud and Azure / Google Cloud Monitoring alerting webhooks

Google Cloud Monitoring alerting webhooks webhooks

Alert policy incidents (opened, closed) posted directly to a webhook notification channel.

Events

  • incident opened
  • incident closed

Signature

Optional basic auth in the webhook URL, or a token in the URL query string. No HMAC.

Retries

Cloud Monitoring retries a failed webhook a few times over several minutes.

See a retry schedule in the calculator.

Sample request from Google Cloud Monitoring alerting webhooksillustrative, shortened
Content-Typeapplication/jsonUser-AgentGoogle-Alerts
{
  "version": "1.2",
  "incident": {
    "incident_id": "0.n3b1c7d2e4f5",
    "scoping_project_id": "acme-prod",
    "policy_name": "High 5xx rate on shop-api",
    "condition_name": "5xx ratio > 5%",
    "state": "open",
    "started_at": 1791493200,
    "summary": "5xx ratio for shop-api is above the threshold of 5% with a value of 7.2%.",
    "url": "https://console.cloud.google.com/monitoring/alerting/incidents/0.n3b1c7d2e4f5?project=acme-prod"
  }
}