• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Google Cloud Spanner monitoring integration

New Relic's integrations with the Google Cloud Platform (GCP) include an integration to report Google Cloud Spanner data to New Relic. This document explains how to activate the GCP Cloud Spanner integration and describes the data that can be reported.

Features

Google Cloud Spanner service is a globally-distributed relational database service built for the cloud. Using the Google Spanner Console, developers can create a Cloud Spanner instance, add schemas, write and modify data, and run queries.

Activate integration

To enable the integration follow standard procedures to connect your GCP service to New Relic.

Polling frequency

New Relic integrations query your GCP services according to a polling interval, which varies depending on the integration. The polling frequency for Google Cloud Spanner is five minutes. The resolution is 1 data point every minute.

Find and use data

After activating the integration and waiting a few minutes (based on the polling frequency), data will appear in the New Relic UI. To find and use your data, including links to your and alert settings, go to one.newrelic.com > All capabilities > Infrastructure > GCP > (select an integration).

Metric data

To view metric data for your GCP Spanner integration in New Relic, create NRQL queries for GcpSpannerInstanceSample and GcpSpannerDatabaseSample events and their related attributes.

GcpSpannerInstanceSample

Query GcpSpannerInstanceSample events in New Relic to view data for the following attributes:

Attribute

Description

instance.autoscaling.HighPriorityCpuUtilizationTarget

High priority CPU utilization target used for autoscaling.

instance.autoscaling.MaxNodes

Maximum number of nodes autoscaler is allowed to allocate to the instance.

instance.autoscaling.MaxProcessingUnits

Maximum number of processing units autoscaler is allowed to allocate to the instance.

instance.autoscaling.MinNodes

Minimum number of nodes autoscaler is allowed to allocate to the instance.

instance.autoscaling.MinProcessingUnits

Minimum number of processing units autoscaler is allowed to allocate to the instance.

instance.autoscaling.StorageUtilizationTarget

Storage utilization target used for autoscaling.

instance.backup.UsedBytes

Backup storage used in bytes.

instance.cpu.SmoothedUtilization

Twenty-four hour smoothed utilization of provisioned CPU. Values are typically numbers between 0.0 and 1.0 (but might exceed 1.0), charts display the values as a percentage between 0% and 100% (or more).

instance.cpu.Utilization

Percent utilization of provisioned CPU. Values are typically numbers between 0.0 and 1.0 (but might exceed 1.0), charts display the values as a percentage between 0% and 100% (or more).

instance.cpu.UtilizationByOperationType

Percent utilization of provisioned CPU, by operation type. Values are typically numbers between 0.0 and 1.0 (but might exceed 1.0), charts display the values as a percentage between 0% and 100% (or more). Currently, it does not include CPU utilization for system tasks.

instance.cpu.UtilizationByPriority

Percent utilization of provisioned CPU, by priority. Values are typically numbers between 0.0 and 1.0 (but might exceed 1.0), charts display the values as a percentage between 0% and 100% (or more).

instance.dataBoost.ProcessingUnitSeconds

Total processing units used for DataBoost operations.

instance.LeaderPercentageByRegion

Percentage of leaders by cloud region. Values are typically numbers between 0.0 and 1.0, charts display the values as a percentage between 0% and 100%.

instance.nodes

Total number of nodes.

instance.ProcessingUnits

Total number of processing units.

instance.sessions

Number of sessions in use.

instance.storage.LimitBytes

Storage limit for instance in bytes.

instance.storage.LimitBytesPerProcessingUnit

Storage limit per processing unit in bytes.

instance.storage.UsedBytes

Storage used in bytes.

instance.storage.Utilization

Storage used as a fraction of storage limit.

GcpSpannerDatabaseSample

Query GcpSpannerDatabaseSample events in New Relic to view data for the following attributes:

Attribute

Description

api.apiRequests

Cloud Spanner API requests.

api.ReceivedBytes

Uncompressed request bytes received by Cloud Spanner.

api.Requests

Rate of Cloud Spanner API requests.

api.RequestLatencies

Distribution of server request latencies for a database. This includes latency of request processing in Cloud Spanner backends and API layer. It does not include network or reverse-proxy overhead between clients and servers.

api.RequestLatenciesByTransactionType

Distribution of server request latencies for a database. This includes latency of request processing in Cloud Spanner backends and API layer. It does not include network or reverse-proxy overhead between clients and servers.

api.SentBytes

Uncompressed response bytes sent by Cloud Spanner.

lockStat.total.LockWaitTime

Total lock wait time for lock conflicts recorded for the entire database.

queries

Count of queries by database name, status, query type, and used optimizer version.

queryStat.total.BytesReturned

Number of data bytes that the queries returned, excluding transmission encoding overhead.

queryStat.total.CpuTime

Number of seconds of CPU time Cloud Spanner spent on operations to execute the queries.

queryStat.total.Executions

Number of times Cloud Spanner saw queries during the interval.

queryStat.total.FailedExecutions

Number of times queries failed during the interval.

queryStat.total.QueryLatencies

Distribution of total length of time, in seconds, for query executions within the database.

queryStat.total.RemoteServiceCalls

Count of remote service calls.

queryStat.total.RemoteServiceCallsLatencies

Latency of remote service calls.

queryStat.total.RemoteServiceNetworkBytesSizes

Network bytes exchanged with remote service.

queryStat.total.RemoteServiceProcessedRows

Count of rows processed by a remote service.

queryStat.total.RemoteServiceProcessedRowsLatencies

Latency of rows processed by a remote service.

queryStat.total.ReturnedRows

Number of rows that the queries returned.

queryStat.total.ScannedRows

Number of rows that the queries scanned excluding deleted values.

readStat.total.BytesReturned

Total number of data bytes that the reads returned excluding transmission encoding overhead.

readStat.total.ClientWaitTime

Number of seconds spent waiting due to throttling.

readStat.total.CpuTime

Number of seconds of CPU time Cloud Spanner spent execute the reads excluding prefetch CPU and other overhead.

readStat.total.Executions

Number of times Cloud Spanner executed the read shapesduring the interval.

readStat.total.LeaderRefreshDelay

Number of seconds spent coordinating reads across instances in multi-regionconfigurations.

readStat.total.LockingDelays

Distribution of total time in seconds spent waiting due to locking.

readStat.total.ReturnedRows

Number of rows that the reads returned.

rowDeletionPolicy.DeletedRows

Count of rows deleted by the policy since the last sample.

rowDeletionPolicy.ProcessedWatermarkAge

Time between now and the read timestamp of the last successful execution. An execution happens as the background task deletes eligible data in batches and is successful even when there are rows that cannot be deleted.

rowDeletionPolicy.UndeletableRows

Number of rows in all tables in the database that can't be deleted. A row can't be deleted if, for example, it has so many child rows that a delete would exceed the transaction limit.

transactionStat.total.BytesWritten

Number of bytes written by transactions.

transactionStat.total.CommitAttempts

Number of commit attempts for transactions.

transactionStat.total.CommitRetries

Number of commit attempts that are retries from previously aborted transaction attempts.

transactionStat.total.Participants

Distribution of total number of participants in each commit attempt.

transactionStat.total.TransactionLatencies

Distribution of total seconds takenfrom the first operation of the transaction to commit or abort.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.