Logs and metrics Stay organized with collections Save and categorize content based on your preferences.
This page explains how Certificate Manager logs various types ofinformation about its operation and how to view that information.
Logs
To view Certificate Manager logs, use theLogs Explorer in the Google Cloud console.
Certificate Manager provides Google Cloud logs described inGoogle Cloud logs.
Certificate Manager uses Cloud Logging to capture andstore logs. Certificate Manager logging is always enabled andonly captures a minimal amount of information specifically related tocertificate expiration. The Certificate Manager monitored resource typeiscertificatemanager.googleapis.com/Project.
You can also capture and retrieve Certificate Manager logs usingCloud Logging. See the documentation forCloud Logging client librariesfor information on how to configure this logging mechanism.
Configure log alerts
You can configure alerts for events that Certificate Manager writes toCloud Logging, such as certificate expiration. For instructions, seeConfigure log-based alerts.
For example, to configure an alert for certificates that have expired, use the following as the alert query:
logName = "projects/PROJECT_ID/logs/certificatemanager.googleapis.com%2Fcertificates_expiry" AND jsonPayload.state = "EXPIRED"
If you want to configure an alert for certificates that are close to expiration, use the following as the alert query:
logName = "projects/PROJECT_ID/logs/certificatemanager.googleapis.com%2Fcertificates_expiry" AND jsonPayload.state = "CLOSE_TO_EXPIRY"
ReplacePROJECT_ID with the ID of the target Google Cloud project.
For Google-managed certificatesCLOSE_TO_EXPIRY logs are generated daily, starting 5-10 days beforeexpiration, depending on the certificate's lifetime and renewal process. For self-managedcertificates too,CLOSE_TO_EXPIRY logs are generated daily, starting 10 days before expiration.
Metrics
This section lists the metrics supported by Certificate Manager.To view Certificate Manager metrics, use theMetrics Explorer in theGoogle Cloud console.
Standard metrics
Certificate Manager writes the following standardCloud Monitoring API metrics:
| Metric | Description |
|---|---|
serviceruntime.googleapis.com/api/request_count
| Cumulative count of completed requests. The following labels apply:
|
serviceruntime.googleapis.com/api/request_latencies
| Distribution of latencies for non-streaming requests. |
serviceruntime.googleapis.com/api/request_sizes
| Distribution of request sizes. Request size is recorded when a request completes. |
serviceruntime.googleapis.com/api/response_sizes
| Distribution of response sizes. Response size is recorded when a request completes. |
Custom metrics
Additionally, Certificate Manager writes the following custommetrics using the Cloud Monitoring API:
| Metric | Description |
|---|---|
certificatemanager.googleapis.com/project/certificates
| Number of certificates provisioned within the target Google Cloud project. The following labels apply:
|
certificatemanager.googleapis.com/map/entries
| Number of certificate map entries provisioned within the target Google Cloud project. The following labels apply:
|
What's next
- Deploy a Google-managed certificate with DNS authorization (tutorial)
- Deploy a Google-managed certificate with load balancer authorization (tutorial)
- Deploy a Google-managed certificate with CA Service (tutorial)
- Deploy a self-managed certificate (tutorial)
- Migrate a certificate to Certificate Manager
- Manage certificates
- Manage certificate maps
- Manage certificate map entries
- Manage DNS authorizations
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.