Google Spanner
Overview
Google Cloud Spanner is the first and only relational database service that is both strongly consistent and horizontally scalable.
Get metrics from Google Spanner to:
- Visualize the performance of your Spanner databases.
- Correlate the performance of your Spanner databases with your applications.
Setup
Metric collection
Installation
If you haven’t already, set up the Google Cloud Platform integration first. There are no other installation steps.
Log collection
Google Cloud Spanner logs are collected with Google Cloud Logging and sent to a Cloud pub/sub with an HTTP push forwarder. If you haven’t already, set up a Cloud pub/sub with an HTTP push forwarder.
Once this is done, export your Google Cloud Spanner logs from Google Cloud Logging to the pub/sub:
Go to the Google Cloud Logging page and filter Google Cloud Spanner logs.
Click Create Sink and name the sink accordingly.
Choose “Cloud Pub/Sub” as the destination and select the pub/sub that was created for that purpose. Note: The pub/sub can be located in a different project.
Click Create and wait for the confirmation message to show up.
Data Collected
Metrics
gcp.spanner.api.received_bytes_count (gauge) | Uncompressed request bytes received by Cloud Spanner. Shown as byte |
gcp.spanner.api.request_count (rate) | Rate of Cloud Spanner API requests. Shown as request |
gcp.spanner.api.request_latencies.avg (gauge) | Average server request latencies for a database. Shown as second |
gcp.spanner.api.request_latencies.samplecount (gauge) | Sample count of server request latencies for a database. Shown as second |
gcp.spanner.api.request_latencies.sumsqdev (gauge) | Sum of Squared Deviation of server request latencies for a database. Shown as second |
gcp.spanner.api.sent_bytes_count (gauge) | Uncompressed response bytes sent by Cloud Spanner. Shown as byte |
gcp.spanner.instance.cpu.utilization (gauge) | Utilization of provisioned CPU, between 0 and 1. Shown as fraction |
gcp.spanner.instance.node_count (gauge) | Total number of nodes. Shown as node |
gcp.spanner.instance.session_count (gauge) | Number of sessions in use. Shown as session |
gcp.spanner.instance.storage.used_bytes (gauge) | Storage used in bytes. Shown as byte |
Events
The Google Cloud Spanner integration does not include any events.
Service Checks
The Google Cloud Spanner integration does not include any service checks.
Troubleshooting
Need help? Contact Datadog support.