文档文档

Dovecot 输入插件

此插件使用 Dovecot 的 v2.1 统计协议Dovecot 服务器收集有关配置域的指标。您可以在 Dovecot 版本最高到 v2.3.x 上使用此插件。

Dovecot v2.4+ 已移除旧协议,此插件将无法正常工作。对于新版本的 Dovecot,请使用 Dovecot 的 Openmetrics 导出器,并结合 http 输入插件openmetrics 数据格式。

引入于: Telegraf v0.10.3 标签: server 操作系统支持: all

全局配置选项

插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md

配置

# Read metrics about dovecot servers
[[inputs.dovecot]]
  ## specify dovecot servers via an address:port list
  ##  e.g.
  ##    localhost:24242
  ## or as an UDS socket
  ##  e.g.
  ##    /var/run/dovecot/old-stats
  ##
  ## If no servers are specified, then localhost is used as the host.
  servers = ["localhost:24242"]

  ## Type is one of "user", "domain", "ip", or "global"
  type = "global"

  ## Wildcard matches like "*.com". An empty string "" is same as "*"
  ## If type = "ip" filters should be <IP/network>
  filters = [""]

Metrics

  • dovecot
    • 标签 (tags)
      • server (服务器主机名)
      • type (查询类型)
      • ip (ip地址)
      • user (用户名)
      • domain (域名)
    • 字段 (fields)
      • reset_timestamp (字符串)
      • last_update (字符串)
      • num_logins (整数)
      • num_cmds (整数)
      • num_connected_sessions (整数)
      • user_cpu (浮点数)
      • sys_cpu (浮点数)
      • clock_time (浮点数)
      • min_faults (整数)
      • maj_faults (整数)
      • vol_cs (整数)
      • invol_cs (整数)
      • disk_input (整数)
      • disk_output (整数)
      • read_count (整数)
      • read_bytes (整数)
      • write_count (整数)
      • write_bytes (整数)
      • mail_lookup_path (整数)
      • mail_lookup_attr (整数)
      • mail_read_count (整数)
      • mail_read_bytes (整数)
      • mail_cache_hits (整数)

示例输出

dovecot,server=dovecot-1.domain.test,type=global clock_time=101196971074203.94,disk_input=6493168218112i,disk_output=17978638815232i,invol_cs=1198855447i,last_update="2016-04-08 11:04:13.000379245 +0200 CEST",mail_cache_hits=68192209i,mail_lookup_attr=0i,mail_lookup_path=653861i,mail_read_bytes=86705151847i,mail_read_count=566125i,maj_faults=17208i,min_faults=1286179702i,num_cmds=917469i,num_connected_sessions=8896i,num_logins=174827i,read_bytes=30327690466186i,read_count=1772396430i,reset_timestamp="2016-04-08 10:28:45 +0200 CEST",sys_cpu=157965.692,user_cpu=219337.48,vol_cs=2827615787i,write_bytes=17150837661940i,write_count=992653220i 1460106266642153907

此页面是否有帮助?

感谢您的反馈!


InfluxDB 3.8 新特性

InfluxDB 3.8 和 InfluxDB 3 Explorer 1.6 的主要增强功能。

查看博客文章

InfluxDB 3.8 现已适用于 Core 和 Enterprise 版本,同时发布了 InfluxDB 3 Explorer UI 的 1.6 版本。本次发布着重于操作成熟度,以及如何更轻松地部署、管理和可靠地运行 InfluxDB。

更多信息,请查看

InfluxDB Docker 的 latest 标签将指向 InfluxDB 3 Core

在 **2026 年 2 月 3 日**,InfluxDB Docker 镜像的 latest 标签将指向 InfluxDB 3 Core。为避免意外升级,请在您的 Docker 部署中使用特定的版本标签。

如果使用 Docker 来安装和运行 InfluxDB,latest 标签将指向 InfluxDB 3 Core。为避免意外升级,请在您的 Docker 部署中使用特定的版本标签。例如,如果使用 Docker 运行 InfluxDB v2,请将 latest 版本标签替换为 Docker pull 命令中的特定版本标签 — 例如

docker pull influxdb:2