数据采集 采集源配置 NSQ 监控指标采集
NSQ 监控指标采集
简介
采集 NSQ 性能相关的监控指标上报到 DataFlux 中
前置条件
- 已安装 DataKit(DataKit 安装文档)
配置
进入 DataKit 安装目录下的 conf.d/nsq
目录,复制 nsq.conf.sample
并命名为 nsq.conf
。示例如下:
# Description
[[inputs.nsq]]
## An array of NSQD HTTP API endpoints
endpoints = ["http://localhost:4151"]
## Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
配置好后,重启 DataKit 即可生效
采集指标
- 指标集 nsq_topic
tags
名称 | 描述 |
---|---|
server_host | |
server_version | |
topic |
field
名称 | 单位 |
---|---|
backend_depth | int |
channel_count | int |
depth | int |
message_count | int |
- 指标集 nsq_server
tags
名称 | 描述 |
---|---|
server_host | |
server_version |
field
名称 | 单位 |
---|---|
server_count | int |
topic_count | int |
- 指标集 nsq_client
tags
名称 | 描述 |
---|---|
channel | |
client_address | |
client_deflate | |
client_hostname | |
client_id | |
client_snappy | |
client_tls | |
client_user_agent | |
client_version | |
server_host | |
server_version | |
topic |
field
名称 | 单位 |
---|---|
finish_count | int |
inflight_count | int |
message_count | int |
ready_count | int |
requeue_count | int |
- 指标集 nsq_channel
tags
名称 | 描述 |
---|---|
channel | |
server_host | |
server_version | |
topic |
field
名称 | 单位 |
---|---|
backend_depth | int |
client_count | int |
depth | int |
deferred_count | int |
inflight_count | int |
message_count | int |
requeue_count | int |
timeout_count | int |