立场文件:架构优先应用远程监控
Positional Paper: Schema-First Application Telemetry
摘要:
应用遥测是指从软件系统中获取的测量结果,用于评估其性能、可用性、正确性、效率和对操作员有用的其他方面,以及在其行为异常时对其进行故障排除。许多现代可观测性平台支持遥测信号的维度模型,其中测量伴随有用于识别由遥测描述的资源或活动的业务特定属性(例如,客户标识符)。然而,这些平台中的大多数缺乏对数据的任何语义理解,因为没有捕获关于遥测的任何元数据,从简单的方面(例如测量单位或数据类型(将所有维度视为字符串))到更复杂的概念(例如目的策略)。这限制了平台提供丰富的用户体验的能力,特别是在处理不同遥测资产时,例如,将时间序列中的异常与日志或轨迹的对应子集相关联,这需要对相应数据集中的维度进行语义理解。在本文中,我们描述了一种模式优先的方法,应用遥测,正在实施的Meta。它允许可观测性平台从一开始就捕获有关遥测的元数据,并实现广泛的功能,包括编译时输入验证,多信号相关性和交叉过滤,甚至隐私规则执行。我们提出了一系列的设计目标,并展示了模式优先的方法如何提供更好的权衡比许多现有的解决方案在行业中。
英文摘要:
Application telemetry refers to measurements taken from software systems to assess their performance, availability, correctness, efficiency, and other aspects useful to operators, as well as to troubleshoot them when they behave abnormally. Many modern observability platforms support dimensional models of telemetry signals where the measurements are accompanied by additional dimensions used to identify either the resources described by the telemetry or the business-specific attributes of the activities (e.g., a customer identifier). However, most of these platforms lack any semantic understanding of the data, by not capturing any metadata about telemetry, from simple aspects such as units of measure or data types (treating all dimensions as strings) to more complex concepts such as purpose policies. This limits the ability of the platforms to provide a rich user experience, especially when dealing with different telemetry assets, for example, linking an anomaly in a time series with the corresponding subset of logs or traces, which requires semantic understanding of the dimensions in the respective data sets. In this paper, we describe a schema-first approach to application telemetry that is being implemented at Meta. It allows the observability platforms to capture metadata about telemetry from the start and enables a wide range of functionalities, including compile-time input validation, multi-signal correlations and cross-filtering, and even privacy rules enforcement. We present a collection of design goals and demonstrate how schema-first approach provides better trade-offs than many of the existing solutions in the industry.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。