n9e categraf 监控项配置文件

http_response.toml

 
[[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

[[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




[[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

# 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*)"

oracle.toml

[[instances]]
 address = "10.12.8.1:1521/gemesdb"
 username = "system"
 password = "xxxxx"
 is_sys_dba = false
 is_sys_oper = false
 disable_connection_pool = false
 max_open_connections = 5
  #interval = global.interval * interval_times
 interval_times = 1
 labels = { region="MES",instance="gemesdb" }


 [[instances]]
 address = "10.12.8.2:1521/edadb"
 username = "system"
 password = "xxxxx"
 is_sys_dba = false
 is_sys_oper = false
 disable_connection_pool = false
 max_open_connections = 5
 labels = { region="EDA",instance="edadb" }
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

为什么不问问神奇的海螺呢丶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值