Help us improve
Share bugs, ideas, or general feedback.
From sre-extension
Manages Service Level Objectives (SLOs) on Google Cloud Monitoring via REST API. Discovers services, lists SLOs, creates availability/latency SLOs when gcloud commands are unavailable.
npx claudepluginhub gemini-cli-extensions/sre --plugin sre-extensionHow this skill is triggered — by the user, by Claude, or both
Slash command
/sre-extension:gcp-slo-managementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill enables the discovery and management of SLOs in Google Cloud Monitoring. Since `gcloud` lacks native SLO creation commands, this skill leverages the Monitoring REST API and a bundled discovery script.
Defines and tracks SLAs, SLIs, SLOs for service reliability including availability, latency, error rates, and error budgets. Useful for setting targets and monitoring health.
Manages Grafana SLO definitions: create, update, pull, push via GitOps, delete using gcx CLI. Use for SLO lifecycle tasks excluding health checks or investigations.
Designs SLOs with SLIs, targets, alerting thresholds, and error budgets following Google SRE best practices. Use for defining reliability targets or service indicators.
Share bugs, ideas, or general feedback.
This skill enables the discovery and management of SLOs in Google Cloud Monitoring. Since gcloud lacks native SLO creation commands, this skill leverages the Monitoring REST API and a bundled discovery script.
Every SLO must be attached to a Service. Use the discovery script to find the correct Service ID.
python3 skills/gcp-slo-management/scripts/discovery.py <PROJECT_ID>Display Name and Service ID.Use curl to POST a JSON definition to the service.
# Set variables
PROJECT_ID="your-project"
SERVICE_ID="wl:..." # From step 1
TOKEN=$(gcloud auth application-default print-access-token)
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
"https://monitoring.googleapis.com/v3/projects/$PROJECT_ID/services/$SERVICE_ID/serviceLevelObjectives" \
-d '{
"displayName": "99% Availability - Last 7 Days",
"goal": 0.99,
"rollingPeriod": "604800s",
"serviceLevelIndicator": {
"basicSli": {
"availability": {}
}
}
}'
requestBased or windowBased SLIs with specific metric filters.latency threshold within basicSli.gcloud auth application-default login and that your account has roles/monitoring.editor.Service ID exists in the target project.