n9e版本:v6.0.0-ga.5-88040bf27716e473dd437f8c954a4dc88339b676
categraf版本:v0.2.41-2e4ac89cac4bd452fcef2e7106b977d2a0679aef
input.net_response/net_response.toml 配置文件:
# # collect interval
# interval = 15
[[instances]]
targets = [
"127.0.0.1:22",
"localhost:6379",
"localhost:9200",
"localhost:17000"
]
# # append some labels for series
# labels = { region="cloud", product="n9e" }
labels = { ecs='anolisOS' }
# # interval = global.interval * interval_times
# interval_times = 1
## Protocol, must be "tcp" or "udp"
## NOTE: because the "udp" protocol does not respond to requests, it requires
## a send/expect string pair (see below).
# protocol = "tcp"
## Set timeout
# timeout = "1s"
## Set read timeout (only used if expecting a response)
# read_timeout = "1s"
## The following options are required for UDP checks. For TCP, they are
## optional. The plugin will send the given string to the server and then
## expect to receive the given 'expect' string back.
## string sent to the server
# send = "ssh"
## expected string in answer
# expect = "ssh"
大盘当前样式
需求:目前存在多个服务器节点,不同节点都是需要检查不同的端口,本机请求localhost端口号。
但是当前大盘样式,没有ident标签,无法按照每个节点区分端口,尝试添加了变量,变量信息如下:
但是选择变量后,还是无法单独展示一个节点的指标
需求:如何配置当前内置大盘,可以满足按照ident区分不同主机的端口探测信息