admin管理员组文章数量:1289834
I'm using Google Cloud Storage Transfer Service to transfer data between Cloud Storage buckets via agentless transfer, and I've noticed that the error count metric (storage_transfer_job.error_count) is not being published for my transfer job. Even when the job encounters failures (e.g., due to missing objects or permission issues), the metric does not reflect any errors. Other related metrics, such as storage_transfer_job.found_bytes_count, are being updated correctly. This issue makes it difficult to monitor and alert on transfer failures programmatically.
I have verified that Cloud Monitoring is enabled and that other transfer-related metrics are being updated. However, despite these failures being logged, storage_transfer_job.error_count remains at zero. I expected this metric to increment when errors occur, allowing me to monitor and alert on failed transfers, but that is not happening. Is there any additional configuration required, or could this be a bug?
I'm using Google Cloud Storage Transfer Service to transfer data between Cloud Storage buckets via agentless transfer, and I've noticed that the error count metric (storage_transfer_job.error_count) is not being published for my transfer job. Even when the job encounters failures (e.g., due to missing objects or permission issues), the metric does not reflect any errors. Other related metrics, such as storage_transfer_job.found_bytes_count, are being updated correctly. This issue makes it difficult to monitor and alert on transfer failures programmatically.
I have verified that Cloud Monitoring is enabled and that other transfer-related metrics are being updated. However, despite these failures being logged, storage_transfer_job.error_count remains at zero. I expected this metric to increment when errors occur, allowing me to monitor and alert on failed transfers, but that is not happening. Is there any additional configuration required, or could this be a bug?
Share Improve this question asked Feb 21 at 7:26 Pranav BansalPranav Bansal 111 bronze badge 2- Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Bot Commented Feb 21 at 8:11
- Try to look at more detailed logging this way: cloud.google/storage-transfer/docs/… – dany L Commented Feb 21 at 14:34
1 Answer
Reset to default 0Despite not being able to provide additional details to highlight exactly what you need, I suspect that there may be an issue specifically with how error counts are being handled or reported.
Here’s my thoughts to troubleshoot why the storage_transfer_job.error_count
metric isn't updating correctly:
If you're using the
gcloud
CLI or the API, ensure that you've configured your transfer job to store logs by using the--log-dir=logs-directory
flag when creating the transfer job. Then you will be able to inspect your transfer logs to determine why these files failed. If you didn’t use this flag then you will need to run the transfer job again.Once you have logs, inspect them carefully to see the specific errors (e.g., permission issues, missing files). This can provide insight into why the
error_count
metric isn’t incrementing.For common troubleshooting steps, refer to the troubleshooting guide for Cloud Storage Transfer to see if there are known issues or additional steps to resolve specific transfer failures.
Make sure that you have the Monitoring Viewer (
roles.monitoring.viewer
) role, or equivalent permissions, to view metrics in Cloud Monitoring. You can check your permissions by going to the IAM & Admin page in the Google Cloud Console.If you can’t find the source of the issue or need a deeper investigation into why the error count metric isn’t updating, it’s best to contact Google Cloud Support directly. They can provide more in-depth assistance.
I hope it helps!
本文标签:
版权声明:本文标题:google cloud platform - GCP Storage Transfer Service is not publishing error count metric for a transfer job - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741400656a2376646.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论