Using Console
Using CLI
[HEALTH_CHECK_NAME]
: A name for the health check.[PORT]
: The port number of the SSL certificate.[REQUEST_PATH]
: The request path for the health check.[CHECK_INTERVAL]
: The interval at which the health check should run, in seconds.[TIMEOUT]
: The maximum time allowed for the health check to complete, in seconds.[UNHEALTHY_THRESHOLD]
: The number of consecutive failed health checks required to mark the instance as unhealthy.[HEALTHY_THRESHOLD]
: The number of consecutive successful health checks required to mark the instance as healthy.[SSL_CERTIFICATE_NAME]
: The name of the SSL certificate to be monitored.[POLICY_NAME]
: A name for the alert policy.[SSL_CERTIFICATE_NAME]
: The name of the SSL certificate to be monitored.[COMPARISON_OPERATOR]
: The comparison operator for the threshold value. For example, >
or <
.[THRESHOLD_VALUE]
: The threshold value for the SSL certificate expiry time, in seconds.[NOTIFICATION_CHANNELS]
: A comma-separated list of notification channels to receive alerts.Using Python
your-project-id
with your GCP project ID.www.example.com
and 443
with your SSL certificate’s hostname and port number.example.com SSL Certificate
with a name for your SSL certificate.path/to/your/adc.json
with the path to your ADC file.30
with the number of days before expiration to trigger an alert.your-alert-policy-name
with the name of your alerting policy..py
file and run it using the following command: