search
数据采集 采集源配置 ASP .NET 指标采集

ASP .NET 指标采集

简介

实时采集 ASP.NET 的指标, 上报到 DataFlux 中

前置条件

配置

进入 DataKit 安装目录下的 conf.d/windows 目录,复制 aspdotnet.conf.sample 并命名为 aspdotnet.conf。示例如下:

设置:

[[inputs.win_perf_counters]]
[[inputs.win_perf_counters.object]]
    # ##(required)
    ObjectName = 'ASP.NET'

    # ##(required)
    Counters = ['Application Restarts', 'Worker Process Restarts', 'Request Wait Time']

    # ##(required) specify the .net clr instances, use '*' to apply all
    Instances = ['*']

    # ##(required) all object should use the same name
    Measurement = 'aspdotnet'

    # ##(optional)Set to true to include _Total instance when querying for all (*).
    #IncludeTotal=false

[[inputs.win_perf_counters.object]]
    # ##(required)
    ObjectName = 'ASP.NET Applications'

    # ##(required)
    Counters = ['Requests In Application Queue', 'Requests Executing', 'Requests/Sec', 'Forms Authentication Failure', 'Forms Authentication Success']

    # ##(required) specify the .net clr instances, use '*' to apply all
    Instances = ['*']

    # ##(required) all object should use the same name
    Measurement = 'aspdotnet'

    # ##(optional)Set to true to include _Total instance when querying for all (*).
    #IncludeTotal=false

配置好后,重启 DataKit 即可生效

采集指标

fields
每一个 Counter 为一个指标名, 比如: Requests In Application Queue

tags

名称 描述 类型
objectname string
instance string