Cloud Monitoring for BigQuery Data Transfer Service
BigQuery Data Transfer Service exports monitoring data to Cloud Monitoring.
You can use monitoring metrics for the following purposes:
- Evaluate the usage and performance a data transfer configuration.
- Troubleshoot problems.
- Monitor transfer run statuses.
To create custom dashboards, set up alerts, and query metrics with Monitoring, you can use the Google Cloud console or the Monitoring API.
View transfer data in Metrics Explorer
In the Google Cloud console, go to the Monitoring page.
In the navigation pane, click Metrics Explorer.
Select your project.
In the Find resource type and metric box, enter the following:
- For Resource type, enter
BigQuery DTS Config
. For Metric, select one of the metrics listed in Monitoring metrics for transfer configurations, for example,
Completed run count
.
- For Resource type, enter
Optional: Select aligner, reducer, and other parameters.
The metrics are displayed in the Metrics explorer window.
Define Cloud Monitoring alerts
You can define Monitoring alerts for BigQuery Data Transfer Service metrics:
In the Google Cloud console, go to the Monitoring page.
In the navigation pane, select Alerting > Create policy.
For more information about alerting policies and concepts behind them, see Types of alerting policies.
Click Add Condition and select a condition type.
Select metrics and filters. For metrics, the resource type is BigQuery DTS Config.
Click Save Condition.
Enter policy name, and then click Save Policy.
For more information about alerting policies and concepts, see Introduction to alerting.
Define Cloud Monitoring custom dashboards
You can create custom dashboards over BigQuery Data Transfer Service metrics:
In the Google Cloud console, go to the Monitoring page.
In the navigation pane, select Dashboards > Create Dashboard.
Click Add Chart.
Give the chart a title.
Select metrics and filters. For metrics, the resource type is BigQuery DTS Config.
Click Save.
For more information, see Manage custom dashboards.
Metric reporting frequency and retention
Metrics for BigQuery Data Transfer Service runs are exported to Monitoring in batches, at 1-minute intervals. Monitoring data is retained for 6 weeks.
The dashboard provides data analysis in default intervals of 1h
(1 hour), 6H
(6 hours), 1D
(1 day), 1W
(1 week), and 6W
(6 weeks). You can manually
request analysis in any interval between 1M
(1 minute) to 6W
(6 weeks).
Monitor metrics for transfer configurations
The following metrics for BigQuery Data Transfer Service configs are exported to Monitoring:
Metric | Description |
---|---|
Run latency distribution | Distribution of the execution time (in seconds) of each transfer run, per transfer configuration. |
Active run count | Number of transfer runs that are running or pending, per transfer configuration. |
Completed run count | Number of completed transfer runs in a time period, per transfer configuration. |
Filter dimensions for metrics
Metrics are aggregated for each BigQuery Data Transfer Service configuration. You can filter aggregated metrics by the following dimensions:
Property | Description |
---|---|
TRANSFER_STATE |
Represents the current transfer state of the transfer run. This dimension can have one of the following values:
|
ERROR_CODE |
Represents the final error code of the transfer run. This dimension can have one of the following values:
|
RUN_CAUSE |
Represents how a transfer run was triggered. This dimension can have one of the following values:
|
What's next
- Learn more about Monitoring.
- Read an overview of Cloud Audit Logs and Cloud Logging.