-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
101 lines (87 loc) · 2.48 KB
/
config.example.yaml
File metadata and controls
101 lines (87 loc) · 2.48 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
# Filesystem Exporter Configuration Example
# Copy this file to config.yaml and customize for your environment
server:
host: "0.0.0.0" # Server host address
port: 8080 # Server port
logging:
level: "info" # Log level: debug, info, warn, error
format: "json" # Log format: json or text
metrics:
collection:
default_interval: "5m" # Default collection interval for all metrics
# Filesystem configurations
# Each filesystem will be monitored for disk usage using 'df' command
filesystems:
- name: "root" # Unique name for this filesystem
mount_point: "/" # Mount point path
device: "sda1" # Device identifier
interval: "1m" # Collection interval (overrides default)
- name: "data"
mount_point: "/data"
device: "sdb1"
interval: "2m"
- name: "backup"
mount_point: "/backup"
device: "sdc1"
# Uses default_interval if not specified
# Directory configurations
# Each directory group will be monitored for size using 'du' command
directories:
# Monitor user home directories
home:
path: "/home"
subdirectory_levels: 1 # How many subdirectory levels to monitor
interval: "10m" # Optional: override default interval
# Monitor system directories
system:
path: "/var"
subdirectory_levels: 0 # 0 = only the specified directory
# Monitor temporary directories
temp:
path: "/tmp"
subdirectory_levels: 0
# Monitor application data
apps:
path: "/opt/apps"
subdirectory_levels: 2 # Monitor 2 levels deep
# Monitor backup directories
backups:
path: "/backups"
subdirectory_levels: 1
interval: "30m" # Less frequent for large directories
# Advanced Configuration Examples:
# Synology NAS Example:
# filesystems:
# - name: "volume1"
# mount_point: "/volume1"
# device: "sda1"
# interval: "1m"
# - name: "usb1"
# mount_point: "/volumeUSB1/usbshare"
# device: "usb1p1"
# interval: "2m"
#
# directories:
# nas:
# path: "/volume1/nas/"
# subdirectory_levels: 1
# media:
# path: "/volume1/nas/Media/"
# subdirectory_levels: 2
# docker:
# path: "/volume1/docker/"
# subdirectory_levels: 0
# Docker Example:
# filesystems:
# - name: "host"
# mount_point: "/host"
# device: "host"
# interval: "1m"
#
# directories:
# containers:
# path: "/host/var/lib/docker/containers"
# subdirectory_levels: 1
# volumes:
# path: "/host/var/lib/docker/volumes"
# subdirectory_levels: 1