search
数据采集 采集源配置 Windows Active Directory 采集

Windows Active Directory 采集

简介

采集 windows Active Directory Domain Controller 指标上报到 DataFlux 中

前置条件

配置

进入 DataKit 安装目录下的 conf.d/windows 目录,复制 active_directory.conf.sample 并命名为 active_directory.conf,并编辑该配置文件。示例如下:

[[inputs.win_perf_counters]]

  # ##(optional)可添加自定义tag
  #[inputs.win_perf_counters.tags]
  #  monitorgroup = "ActiveDirectory"

  # ##(required)
  [[inputs.win_perf_counters.object]]
    ObjectName = "DirectoryServices"
    Instances = ["*"]
    Counters = ["Base Searches/sec","Database adds/sec","Database deletes/sec","Database modifys/sec","Database recycles/sec","LDAP Client Sessions","LDAP Searches/sec","LDAP Writes/sec"]

    #可自定义指标集名称,默认为 win_ad,每个object的指标集名称必须相同。
    Measurement = "win_ad"
    #Instances = [""] # Gathers all instances by default, specify to only gather these
    #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).

  [[inputs.win_perf_counters.object]]
    ObjectName = "Security System-Wide Statistics"
    Instances = ["*"]
    Counters = ["NTLM Authentications","Kerberos Authentications","Digest Authentications"]
    Measurement = "win_ad"
    #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).

  [[inputs.win_perf_counters.object]]
    ObjectName = "Database"
    Instances = ["*"]
    Counters = ["Database Cache % Hit","Database Cache Page Fault Stalls/sec","Database Cache Page Faults/sec","Database Cache Size"]
    Measurement = "win_db"
    #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).

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

指标集 win_ad

tags

名称 描述
instance
objectname

fields

名称 描述 类型
Base_Searches_persec float
Database_adds_persec float
Database_deletes_persec float
Database_modifys_persec float
Database_recycles_persec float
Digest_Authentications float
Kerberos_Authentications float
LDAP_Client_Sessions float
LDAP_Searches_persec float
LDAP_Writes_persec float
NTLM_Authentications float

指标集 win_db

tags

名称 描述
instance
objectname

fields

名称 描述 类型
Database_Cache_Percent_Hit float
Database_Cache_Size float