Skip to content

Instantly share code, notes, and snippets.

@olliefr
Created June 17, 2025 23:25
Show Gist options
  • Save olliefr/e383c083accaf1cad1713f2a1c7da79d to your computer and use it in GitHub Desktop.
Save olliefr/e383c083accaf1cad1713f2a1c7da79d to your computer and use it in GitHub Desktop.
Uptime Checks on Google Cloud

Uptime Checks on Google Cloud

gcloud monitoring uptime list-configs --project=dml-sandbox-pigeon
---
checkerType: STATIC_IP_CHECKERS
displayName: hello-iam-direct
httpCheck:
  acceptedResponseStatusCodes:
  - statusClass: STATUS_CLASS_2XX
  path: /
  port: 443
  requestMethod: GET
  serviceAgentAuthentication:
    type: OIDC_TOKEN
  useSsl: true
logCheckFailures: true
monitoredResource:
  labels:
    configuration_name: ''
    location: us-central1
    project_id: dml-sandbox-pigeon
    revision_name: ''
    service_name: hello-iam-direct
  type: cloud_run_revision
name: projects/dml-sandbox-pigeon/uptimeCheckConfigs/hello-iam-direct-myzZ7MN19uQ
period: 60s
timeout: 10s
---
checkerType: STATIC_IP_CHECKERS
displayName: hello-noiam-direct
httpCheck:
  acceptedResponseStatusCodes:
  - statusClass: STATUS_CLASS_2XX
  path: /
  port: 443
  requestMethod: GET
  useSsl: true
logCheckFailures: true
monitoredResource:
  labels:
    configuration_name: ''
    location: us-central1
    project_id: dml-sandbox-pigeon
    revision_name: ''
    service_name: hello-noiam-direct
  type: cloud_run_revision
name: projects/dml-sandbox-pigeon/uptimeCheckConfigs/hello-noiam-direct-lF-OXiSCMgk
period: 60s
timeout: 10s
---
checkerType: STATIC_IP_CHECKERS
displayName: hello-noiam-direct--url
httpCheck:
  acceptedResponseStatusCodes:
  - statusClass: STATUS_CLASS_2XX
  path: /
  port: 443
  requestMethod: GET
  useSsl: true
  validateSsl: true
logCheckFailures: true
monitoredResource:
  labels:
    host: hello-noiam-direct-551927382628.us-central1.run.app
    project_id: dml-sandbox-pigeon
  type: uptime_url
name: projects/dml-sandbox-pigeon/uptimeCheckConfigs/hello-noiam-direct-url--CMAMPdce-I
period: 60s
timeout: 10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment