search
数据采集 采集源配置 OpenLDAP 监控指标采集

OpenLDAP 监控指标采集

简介

采集 openldap 指标上报到 DataFlux 中

前置条件

配置

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

[[inputs.openldap]]
  host = "localhost"
  port = 389

  # ldaps, starttls, or no encryption. default is an empty string, disabling all encryption.
  # note that port will likely need to be changed to 636 for ldaps
  # valid options: "" | "starttls" | "ldaps"
  tls = ""

  # skip peer certificate verification. Default is false.
  insecure_skip_verify = false

  # Path to PEM-encoded Root certificate to use to verify server certificate
  tls_ca = "/etc/ssl/certs.pem"

  # dn/password to bind with. If bind_dn is empty, an anonymous bind is performed.
  bind_dn = ""
  bind_password = ""
  
  # reverse metric names so they sort more naturally
  # Defaults to false if unset, but is set to true when generating a new config
  reverse_metric_names = true

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

采集指标

openldap 指标

指标 描述 类型 单位 Tag
connections_current 当前连接 - - server,port
connections_max_file_descriptors - - server,port
connections_total 总连接 - - server,port
operations_abandon_completed 丢弃操作完成 - - server,port
operations_abandon_initiated 丢弃操作开始 - - server,port
operations_add_completed 增加操作完成 - - server,port
operations_add_initiated 增加操作开始 - - server,port
operations_bind_completed 绑定操作完成 - - server,port
operations_bind_initiated 绑定操作开始 - - server,port
operations_compare_completed 比较操作完成 - - server,port
operations_compare_initiated 比较操作开始 - - server,port
operations_delete_completed 删除操作完成 - - server,port
operations_delete_initiated 删除操作开始 - - server,port
operations_extended_completed 扩展操作完成 - - server,port
operations_extended_initiated 扩展操作开始 - - server,port
operations_modify_completed 修改操作完成 - - server,port
operations_modify_initiated 修改操作开始 - - server,port
operations_modrdn_completed - - server,port
operations_modrdn_initiated - - server,port
operations_search_completed 搜索操作完成 - - server,port
operations_search_initiated 搜索操作开始 - - server,port
operations_unbind_completed 解绑操作完成 - - server,port
operations_unbind_initiated 解绑操作开始 - - server,port
statistics_bytes - - server,port
statistics_entries - - server,port
statistics_pdu - - server,port
statistics_referrals - - server,port
threads_active - - server,port
threads_backload - - server,port
threads_max - - server,port
threads_max_pending - - server,port
threads_open - - server,port
threads_pending - - server,port
threads_starting - - server,port
time_uptime 正常运行时间 - - server,port
waiters_read - - server,port
waiters_write - - server,port