WHOIS 输入插件
此插件查询配置域的 WHOIS 信息,并提供例如来自 IANA 或 ICANN 服务器的到期时间戳、注册商详细信息和域名状态等指标。
引入于: Telegraf v1.35.0 标签: network, web 操作系统支持: all
全局配置选项
插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md。
配置
# Reads whois data and expose as metrics
[[inputs.whois]]
## List of domains to query
domains = ["example.com", "influxdata.com"]
## Use Custom WHOIS server
# server = "whois.iana.org"
## Timeout for WHOIS queries
# timeout = "30s"
## Enable WHOIS referral chain query
# referral_chain_query = falseMetrics
- whois
- 标签 (tags)
- domain
- status (string)
- 字段 (fields)
- creation_timestamp (int, seconds)
- dnssec_enabled (bool)
- error (string)
- expiration_timestamp (int, seconds)
- expiry (int, seconds) - 域名到期前的剩余时间(秒)。如果域名已过期,此值可以为负数。
SELECT (expiry / 60 / 60 / 24) as "expiry_in_days" - registrar (string)
- registrant (string)
- updated_timestamp (int, seconds)
- 标签 (tags)
示例输出
whois,domain=example.com,status=unknown creation_timestamp=694224000i,dnssec_enabled=false,expiration_timestamp=0i,expiry=0i,name_servers="",registrant="",registrar="",updated_timestamp=0i 1741128738000000000
whois,domain=influxdata.com,status=clientTransferProhibited creation_timestamp=1403603283i,dnssec_enabled=false,expiration_timestamp=1750758483i,expiry=9629744i,name_servers="ns-1200.awsdns-22.org,ns-127.awsdns-15.com,ns-2037.awsdns-62.co.uk,ns-820.awsdns-38.net",registrant="",registrar="NameCheap, Inc.",updated_timestamp=1716620263i 1741128738000000000
whois,domain=influxdata-test.com,status=not\ found error="whoisparser: domain is not found" 1741128739000000000此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。