n9e categraf 监控项配置文件

http_response.toml

bash 复制代码
 
[[instances]]
targets = [
    "http://10.12.9.36:8089/RSB/KeepAlive",
]
labels = { system="bc_dev", service="RSB-api" }

[[instances]]
targets = [
    "http://10.12.9.36:8089/RSB/MsgIn", 
    "http://10.12.9.36:8089/RSB/Talk",
]
labels = { system="bc_dev", service="RSB-api" }
method = "POST"
headers = ["Content-Type","application/json"]
body = "{}"  

[[instances]]
targets = [
    "http://10.12.8.38:8089/RSB/KeepAlive",
    "http://10.12.8.39:8089/RSB/KeepAlive",
]
labels = { system="bc_prod", service="RSB-api" }


[[instances]]
targets = [
    "http://10.12.8.38:8089/RSB/MsgIn", 
    "http://10.12.8.38:8089/RSB/Talk",
    "http://10.12.8.39:8089/RSB/MsgIn", 
    "http://10.12.8.39:8089/RSB/Talk",
]
labels = { system="bc_prod", service="RSB-api" }
method = "POST"
headers = ["Content-Type","application/json"]
body = "{}"  




[[instances]]
targets = [
    "http://10.12.8.34/platform/#/Goertek/login",
]
labels = { system="mes", service="web" }

[[instances]]
targets = [
    "http://10.10.111.53:8080/webroot/decision#directory"
]
labels = { system="report", service="web" }

[[instances]]
targets = [
    "http://10.12.8.34/pms/",
]
labels = { system="pms", service="web" }

snmp.toml

bash 复制代码
```bash

[[instances]]
agents = [ "udp://xxx.xxx.xx.xxx:161"]
labels = { region="办公", lable="[办公]深信服(备)AC_MGT" }
version = 2
community = "xxxxx"
agent_host_tag = "ip"
timeout = "5s"
retries = 1
interval_times = 4

[[instances.field]]
oid = "SNMPv2-MIB::sysUpTime.0"
name = "uptime"

[[instances.field]]
oid = "SNMPv2-MIB::sysName.0"
name = "source"
is_tag = true

[[instances.table]]
oid = "IF-MIB::ifTable"
name = "interface"
index_as_tag = true
inherit_tags = ["source"]

[[instances.table.field]]
oid = "IF-MIB::ifDescr"
name = "ifDescr"
is_tag = true

ping.toml

bash 复制代码
[[instances]]
targets = [ "10.12.87.1" ]
labels = { region="3#2F机房", device_name="VR_3#2F_Server_HJ_87.1" , type="服务器接入"}
[[instances]]
targets = [ "10.12.87.2" ]
labels = { region="3#2F机房", device_name="VR-3#2F-MGMT87.2" , type="带外管理"}
[[instances]]
targets = [ "10.12.87.3" ]
labels = { region="3#2F机房", device_name="VR_3#2F_Server_JR_87.3" , type="服务器接入"}
[[instances]]
targets = [ "10.12.87.4" ]
labels = { region="3#2F机房", device_name="VR-3#3F-MGMT87.4" , type="带外管理"}
[[instances]]
targets = [ "10.12.87.5" ]
labels = { region="3#2F机房", device_name="VR_3#2F_Server_JR_87.5" , type="服务器接入"}

procstat.toml --win-server

bash 复制代码
# collect interval
interval = 15

[[instances]]
search_win_service = "" 
# # executable name (ie, pgrep <search_exec_substring>)
# search_exec_substring = "nginx"

# # pattern as argument for pgrep (ie, pgrep -f <search_cmdline_substring>)
# search_cmdline_substring = "n9e server"

# # windows service name
# search_win_service = ""

# # search_exec_regexp: Use a regular expression to match the executable path
# # executable name filter to regexp (like "ps -e | grep -E <search_exec_regexp>" but using re2 regexp )
# search_exec_regexp = ""

# # search_cmdline_regexp: Use a regular expression to match the command line
# # executable name filter to regexp (like "ps -ef | grep -E <search_cmdline_regexp>" but using re2 regexp )
# search_cmdline_regexp = ""

# # [option] search process with specific user
# search_user = ""

# # append some labels for series
labels = { os="windows", type="service" }

# # interval = global.interval * interval_times
interval_times = 1

# # mode to use when calculating CPU usage. can be one of 'solaris' or 'irix'
mode = "irix"

# sum of threads/fd/io/cpu/mem, min of uptime/limit
gather_total = true

# will append pid as tag
gather_per_pid = true

#  gather jvm metrics only when jstat is ready
 gather_more_metrics = [
     "threads",
     "fd",
     "io",
     "uptime",
     "cpu",
     "mem",
     "limit",
     "jvm"
 ]

# # gather more labels from cmdline using regexp named group
# # https://pkg.go.dev/regexp#Regexp.SubexpNames
# # warning: reggroup not support gather_total, "*_total" metrics will count all matches process, not include reggroup labels
# labels_from_cmdline_reggroup = "java -jar (?P<jarName>.*\\.jar).*--server-name (?P<serverName>\\w*)"
相关推荐
BBNbQKHXygfU8 小时前
课程管理平台 SSM 技术栈:Java EE、Mysql-5.6、Spring、SpringM...
iphone
游戏开发爱好者89 小时前
日常开发与测试的 App 测试方法、查看设备状态、实时日志、应用数据
android·ios·小程序·https·uni-app·iphone·webview
黑码哥10 小时前
ViewHolder设计模式深度剖析:iOS开发者掌握Android列表性能优化的实战指南
android·ios·性能优化·跨平台开发·viewholder
2501_9151063211 小时前
app 上架过程,安装包准备、证书与描述文件管理、安装测试、上传
android·ios·小程序·https·uni-app·iphone·webview
2501_9151063211 小时前
使用 Sniffmaster TCP 抓包和 Wireshark 网络分析
网络协议·tcp/ip·ios·小程序·uni-app·wireshark·iphone
熊猫钓鱼>_>12 小时前
移动端开发技术选型报告:三足鼎立时代的开发者指南(2026年2月)
android·人工智能·ios·app·鸿蒙·cpu·移动端
徐同保1 天前
通过ip访问nginx的服务时,被第一个server重定向了,通过设置default_server解决这个问题
ios·iphone
2501_915918411 天前
在 iOS 环境下查看 App 详细信息与文件目录
android·ios·小程序·https·uni-app·iphone·webview
2501_916007472 天前
没有 Mac 用户如何上架 App Store,IPA生成、证书与描述文件管理、跨平台上传
android·macos·ios·小程序·uni-app·iphone·webview
夏幻灵2 天前
HTTPS全面解析:原理、加密机制与证书体
ios·iphone