指标遥测:Application Insights 数据模型Metric telemetry: Application Insights data model

Application Insights 支持两种类型的指标遥测:单个度量和预聚合指标。There are two types of metric telemetry supported by Application Insights: single measurement and pre-aggregated metric. 单个度量只是一个名称和值。Single measurement is just a name and value. 预聚合指标指定在聚合时间间隔内指标的最小和最大值,以及它的标准偏差。Pre-aggregated metric specifies minimum and maximum value of the metric in the aggregation interval and standard deviation of it.

预聚合指标遥测假定聚合期间为一分钟。Pre-aggregated metric telemetry assumes that aggregation period was one minute.

Application Insights 支持几个已知的指标名称。There are several well-known metric names supported by Application Insights. 这些指标已放入 performanceCounters 表。These metrics placed into performanceCounters table.

表示系统计数器和进程计数器的指标:Metric representing system and process counters:

.NET 名称.NET name 与平台无关的名称Platform agnostic name REST API 名称REST API name 说明Description
\Processor(_Total)\% Processor Time 工作正在进行...Work in progress... processorCpuPercentageprocessorCpuPercentage 总计算机 CPU 百分比total machine CPU
\Memory\Available Bytes 工作正在进行...Work in progress... memoryAvailableBytesmemoryAvailableBytes 显示可用于计算机上运行的进程的物理内存量(以字节为单位)。Shows the amount of physical memory, in bytes, available to processes running on the computer. 通过对清零、可用和备用内存列表上的空间量进行求和来进行计算。It is calculated by summing the amount of space on the zeroed, free, and standby memory lists. 可用内存可供使用;清零内存包含填充了零的内存页,可防止后面的进程看到前面进程使用的数据;备用内存是指已从进程的工作集(其物理内存)中删除、在前往磁盘途中但仍可被重新调用的内存。Free memory is ready for use; zeroed memory consists of pages of memory filled with zeros to prevent later processes from seeing data used by a previous process; standby memory is memory that has been removed from a process's working set (its physical memory) en route to disk but is still available to be recalled. 请参阅内存对象See Memory Object
\Process(??APP_WIN32_PROC??)\% Processor Time 工作正在进行...Work in progress... processCpuPercentageprocessCpuPercentage 托管应用程序的进程的 CPU 百分比CPU of the process hosting the application
\Process(??APP_WIN32_PROC??)\Private Bytes 工作正在进行...Work in progress... processPrivateBytesprocessPrivateBytes 托管应用程序的进程所占用的内存量memory used by the process hosting the application
\Process(??APP_WIN32_PROC??)\IO Data Bytes/sec 工作正在进行...Work in progress... processIOBytesPerSecondprocessIOBytesPerSecond 托管应用程序的进程运行的 I/O 操作速率rate of I/O operations runs by process hosting the application
\ASP.NET Applications(??APP_W3SVC_PROC??)\Requests/Sec 工作正在进行...Work in progress... requestsPerSecondrequestsPerSecond 应用程序处理的请求速率rate of requests processed by application
\.NET CLR Exceptions(??APP_CLR_PROC??)\# of Exceps Thrown / sec 工作正在进行...Work in progress... exceptionsPerSecondexceptionsPerSecond 应用程序引发的异常速率rate of exceptions thrown by application
\ASP.NET Applications(??APP_W3SVC_PROC??)\Request Execution Time 工作正在进行...Work in progress... requestExecutionTimerequestExecutionTime 平均请求执行时间average requests execution time
\ASP.NET Applications(??APP_W3SVC_PROC??)\Requests In Application Queue 工作正在进行...Work in progress... requestsInQueuerequestsInQueue 队列中等待处理的请求数number of requests waiting for the processing in a queue

NameName

想要在 Application Insights 门户和 UI 中看到的指标的名称。Name of the metric you'd like to see in Application Insights portal and UI.

ValueValue

度量的单个值。Single value for measurement. 要聚合的各个度量值的总和。Sum of individual measurements for the aggregation.

计数Count

聚合指标的指标权重。Metric weight of the aggregated metric. 不应为度量设置。Should not be set for a measurement.

MinMin

聚合指标的最小值。Minimum value of the aggregated metric. 不应为度量设置。Should not be set for a measurement.

MaxMax

聚合指标的最大值。Maximum value of the aggregated metric. 不应为度量设置。Should not be set for a measurement.

标准偏差Standard deviation

聚合指标的标准偏差。Standard deviation of the aggregated metric. 不应为度量设置。Should not be set for a measurement.

自定义属性Custom properties

自定义属性 CustomPerfCounter 设置为 true 的指标指示该指标表示 windows 性能计数器。Metric with the custom property CustomPerfCounter set to true indicate that the metric represents the windows performance counter. 这些指标已放入 performanceCounters 表,These metrics placed in performanceCounters table. 不在 customMetrics 中。Not in customMetrics. 此外还分析此指标的名称,以提取类别、计数器和实例名称。Also the name of this metric is parsed to extract category, counter, and instance names.

自定义属性的名称-值集合。Name-value collection of custom properties. 该集合用于通过自定义维度来扩展标准遥测。This collection is used to extend standard telemetry with the custom dimensions. 示例为部署槽,该槽生成特定于遥测或遥测项的属性,例如订单号。Examples are deployment slot that produced telemetry or telemetry-item specific property like order number.

最大密钥长度:150 最大值长度:8192Max key length: 150 Max value length: 8192

后续步骤Next steps