从数据链球机到datadog的日志指标

发布于 2025-01-30 14:02:29 字数 402 浏览 3 评论 0原文

从DataDog中Databricks Delta Live Tables记录指标的最佳方法是什么?我在DataDog和Databricks之间创建连接,并且可以将日志从Databricks发送到DataDog。我在发送Delta Live Tables的日志时有问题。

为了从Delta Live Tables获取指标,我使用活动和Delta Live历史记录。在活动中,我有该表的所有事件,我只需要上次Delta Live Table进程的事件。

event_log = spark.read.format('delta').load(event_log_path)
deltaTableHistory = DeltaTable.forPath(spark, table_path).history().collect()

What is the best way to log metrics from Databricks Delta Live Tables in DataDog? I create connection between Datadog and Databricks, and I can send logs from Databricks to the Datadog. I have problem with sending logs for Delta Live Tables.

For getting metrics from Delta Live Tables, I use events and Delta Live History. In events I have all events for that table, and I need just events for last Delta Live Table process.

event_log = spark.read.format('delta').load(event_log_path)
deltaTableHistory = DeltaTable.forPath(spark, table_path).history().collect()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文