search
数据洞察 视图 视图模板 IIS 监控

IIS 监控

展示 IIS 应用的会话,审计,连接数,工作进程,请求信息

安装 datakit,开启 win_perf_counters 插件

  1. 找到 datakit 默认安装路径的 conf.d 文件夹 (C:\Program Files\dataflux\datakit\conf.d)

  2. 进入 windows 目录,修改 win_perf_counters.conf,追加 iis 相关配置

  3. 重启 datakit 使配置生效

    [[inputs.win_perf_counters.object]]
     ObjectName = "ASP.NET"
     Instances = ["_Total"]
     Counters = [
      "Application Restarts",
      "Applications Running",
      "Audit Failure Events Raised",
      "Audit Success Events Raised",
      "Error Events Raised",
      "Infrastructure Error Events Raised",
      "Requests Error Events Raised",
      "Requests Execution Time",
      "Requests Wait Time",
      "Requests Current",
      "Requests DisConnected",
      "Requests Queued",
      "Requests Rejected",
      "State Server Sessions Abandoned",
      "State Server Sessions Active",
      "State Server Sessions Timed Out",
      "State Server Sessions Total",
      "Worker Process Restarts",
      "Worker Process Running",
     ]
     Measurement = "win_iis"
    
    [[inputs.win_perf_counters.object]]
     ObjectName = "Web Service"
     Instances = ["_Total"]
     Counters = [
      "Current Connections",
      "Total Post Requests",
      "Total Head Requests",
      "Total Put Requests",
      "Current Anonymous Users",
      "Current NonAnonymous Users",
      "Maximum Connections",
      "Connection Attempts/Sec",
     ]
     Measurement = "win_iis"