This commit is contained in:
zxr
2026-03-30 15:26:16 +08:00
parent 5939a3d62d
commit 279021bf86
25 changed files with 1794 additions and 0 deletions

26
etc/logs_dev.yaml Normal file
View File

@@ -0,0 +1,26 @@
Service: logs
Port: 12440
Databases:
Driver: postgres
Source:
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=ops_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
# cache DB的选择请在后面直接带参数不带会自动HASH计算选择DB库。
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/
MicroService:
Enable: false
Anonymous:
- ops.ping.hello
Ingest:
syslog_listen_addr: "0.0.0.0:5514"
trap_listen_addr: "0.0.0.0:9162"
rule_refresh_secs: 30
AlertForward:
enabled: true
base_url: https://ops2.apinb.com
internal_key: "ops-alert"
default_policy_id: 0

View File

@@ -0,0 +1,18 @@
[program:ops-logs]
command=/data/app/ops-logs
directory=/data/app
autostart=true
autorestart=true
user=root
redirect_stderr=true
stdout_logfile=/data/app/logs/ops-logs.log