-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
107 lines (94 loc) · 2.3 KB
/
Copy pathconfig.example.toml
File metadata and controls
107 lines (94 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[daemon]
log_level = "info"
graceful_shutdown_secs = 5
reload_signal = "SIGUSR2"
[api]
listen = "127.0.0.1:9090"
cors_origins = ["http://localhost:5173"]
[collectors.process]
enabled = true
interval_secs = 60
top_n = 10
show_top_proc_num = 10
pscnt_alarm = 1600
pscnt_resume = 1500
pscnt_alarm_ratio = 90
pscnt_resume_ratio = 80
sys_fd_alarm_pct = 80
sys_fd_resume_pct = 70
sys_fd_period_secs = 600
process_fd_warn = 1024
zombie_alarm = 500
zombie_resume = 400
zombie_period_secs = 600
[collectors.cpu_mem]
enabled = true
interval_secs = 2
cpu_monitor_period_secs = 60
cpu_stat_period_secs = 300
cpu_alarm_pct = 90.0
cpu_resume_pct = 80.0
cpu_domain = ""
cpu_report_command = ""
mem_alarm_pct = 90.0
mem_resume_pct = 80.0
mem_period_secs = 60
swap_warn_pct = 50.0
load1_warn_per_core = 2.0
[collectors.filesystem]
enabled = true
interval_secs = 60
ignore_mounts = ["/proc", "/sys", "/dev", "/run", "/snap"]
check_readonly = true
disk_alarm_pct = 90.0
disk_resume_pct = 80.0
inode_alarm_pct = 90.0
inode_resume_pct = 80.0
[[collectors.filesystem.per_mount_overrides]]
mount = "/var/log"
alarm_pct = 80
resume_pct = 70
[collectors.disk]
enabled = true
interval_secs = 5
util_warn_pct = 85.0
iodelay_value_ms = 500
iodelay_window_samples = 60
iodelay_breach_threshold = 30
[collectors.network]
enabled = true
interval_secs = 5
err_pkt_per_sec_warn = 100
conn_count_warn = 10000
# Kernel-level monitoring via ftrace + /proc/interrupts + /proc/softirqs
# Path to eBPF: demonstrates kernel observability today, eBPF upgrade path
[collectors.kernel]
enabled = true
interval_secs = 10
[analyzer]
ewma_alpha = 0.3
fingerprint_dedupe_window_secs = 300
trend_detection = true
trend_window_size = 30
trend_early_warning_pct = 0.15
[analyzer.deepseek]
api_key_env = "DEEPSEEK_API_KEY"
base_url = "https://api.deepseek.com/v1"
model = "deepseek-chat"
timeout_secs = 30
max_retries = 2
[governor]
per_minute_max_calls = 6
offline_template_path = "/etc/sysmonitor-rs/offline_templates.toml"
[actuator]
enable_l0 = true
enable_l1 = false
enable_l2 = true
l2_ack_timeout_secs = 300
audit_log_path = "/var/log/sysmonitor-rs/audit.jsonl"
diag_dir = "/var/lib/sysmonitor-rs/diag"
l2_restart_whitelist = ["nginx.service", "docker.service", "containerd.service"]
[storage]
backend = "memory"
ring_buffer_minutes = 60
sqlite_path = "/var/lib/sysmonitor-rs/db.sqlite"