-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
180 lines (175 loc) · 6.34 KB
/
config.yml
File metadata and controls
180 lines (175 loc) · 6.34 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
interval: 5
flush_interval: 10
max_buffer_size: 10000 # Maximum number of entries to buffer if Redis is unavailable
warn_on_buffer: true
hostname: ''
debug: false
once: false
# Global tags applied to all metrics
tags:
environment: "production"
datacenter: "dc1"
service: "rtcollector"
# Secret store configuration (optional)
# secret_store:
# type: vault # Options: vault, env (default)
# url: http://vault:8200 # Vault server URL (default: VAULT_ADDR env var)
# path_prefix: rtcollector # Path prefix for secrets in Vault
# # token is read from VAULT_TOKEN env var by default
inputs:
- linux_cpu
- linux_mem
- linux_disk:
exclude_mounts: []
include_mounts: [] # Leave empty to include all mount points
exclude_docker: true # Set to false to include Docker overlay mounts
- linux_io:
exclude_devices: []
include_devices: [] # Leave empty to include all devices
- linux_net:
exclude_patterns:
- "veth"
- "docker"
- "^br-"
include_patterns: []
exclude_interfaces: []
include_interfaces:
- "wlp0s20f3" # Always include this interface
- linux_swap
- system
- processes
- kernel
- netstat
- nstat
# - macos_cpu
# - macos_mem
# - macos_disk
# - macos_io
# - macos_net
# - docker:
# endpoint: "unix:///var/run/docker.sock"
# gather_services: false
# swarm_enabled: false
# container_name_include: []
# container_name_exclude: []
# container_state_include: ["container_id", "container_name"]
# container_state_exclude: []
# docker_label_include: []
# docker_label_exclude: []
# tag_env: ["JAVA_HOME", "HEAP_SIZE"]
# timeout: 5
# perdevice: true
# perdevice_include: ["container_id", "container_name"]
# - syslog:
# server: "tcp://127.0.0.1:5514" # Format: protocol://host:port (tcp:// or udp://)
# #tls_cert: "/path/to/cert.pem" # Optional: TLS certificate for secure connections
# #tls_key: "/path/to/key.pem" # Optional: TLS key for secure connections
# read_timeout: 30 # Socket read timeout in seconds (0 = no timeout)
# read_buffer_size: "64KiB" # Buffer size (supports KiB, MiB, GiB suffixes)
# best_effort: true # Try simpler parsing if standard parsing fails
# syslog_standard: "auto" # Syslog standard: "RFC5424", "RFC3164", or "auto"
# sdparam_separator: "_" # Separator for structured data parameters
# - redis:
# host: "127.0.0.1"
# port: 6379
# username: "" # Redis ACL username (Redis 6.0+)
# password: "" # Redis password authentication
# db: 0
# # SSL/TLS options
# ssl: false # Enable SSL/TLS connection
# ssl_ca_certs: "" # Path to CA certificate file
# ssl_certfile: "" # Path to client certificate file
# ssl_keyfile: "" # Path to client key file
# - mariadb:
# host: "127.0.0.1"
# port: 3306
# user: "monitor"
# password: "testpass"
# metrics:
# - Threads_connected
# - Connections
# - Uptime
# - Questions
# - exec:
# commands:
# - "python3 /opt/scripts/report_temp.py"
# environment:
# - "ENV=production"
# - "PATH=/usr/local/bin:/usr/bin"
# timeout: 5
# data_format: "metrics" # or "json"
# ignore_error: false
# working_dir: "/opt/scripts" # optional working directory
# shell: true # whether to use shell for command execution
# max_output_size: 1048576 # limit output size (1MB)
# add_hostname: true # add hostname to metrics
# - postgres:
# host: "127.0.0.1"
# port: 5432
# user: "monitor"
# password: "testpass"
# dbname: "postgres"
# Optional: define custom queries to override default pg_stat_database
# queries:
# - name: "connections"
# sql: "SELECT COUNT(*) FROM pg_stat_activity WHERE datname = current_database();"
# - name: "uptime"
# sql: "SELECT EXTRACT(EPOCH FROM now() - pg_postmaster_start_time())::bigint;"
# - http_response:
# urls:
# - "https://cduser.com"
# method: "GET"
# timeout: 5
# follow_redirects: true
# headers:
# User-Agent: "rtcollector"
# Authorization: "Bearer token123"
# response_status_code: 200
# response_string_match: "healthy"
# insecure_skip_verify: false
# - nginx:
# status_url: "http://localhost/nginx_status" # URL to Nginx stub_status page
# timeout: 5 # Request timeout in seconds
# basic_auth: # Optional HTTP Basic Auth
# username: "monitor"
# password: "password123"
# headers: # Optional custom headers
# X-API-Key: "secret-key"
# - apache:
# status_url: "http://localhost/server-status?auto" # URL to Apache server-status page with ?auto parameter
# timeout: 5 # Request timeout in seconds
# basic_auth: # Optional HTTP Basic Auth
# username: "monitor"
# password: "password123"
# headers: # Optional custom headers
# X-API-Key: "secret-key"
outputs:
- redistimeseries:
host: atila.taild1b8e.ts.net
port: 6379
retention: 1y
# Authentication options
username: "rtcollector" # Redis ACL username (Redis 6.0+)
password: "123456" # Redis password authentication
# SSL/TLS options
# ssl: false # Enable SSL/TLS connection
# ssl_ca_certs: "" # Path to CA certificate file
# ssl_certfile: "" # Path to client certificate file
# ssl_keyfile: "" # Path to client key file
- redissearch:
host: atila.taild1b8e.ts.net
port: 6379
index: "logs_idx"
key_prefix: "log:"
# Authentication options
username: "rtcollector" # Redis ACL username (Redis 6.0+)
password: "123456" # Redis password authentication
# SSL/TLS options
# ssl: false # Enable SSL/TLS connection
# ssl_ca_certs: "" # Path to CA certificate file
# ssl_certfile: "" # Path to client certificate file
# ssl_keyfile: "" # Path to client key file
# Example proxy configuration for Redis outputs:
# socks5_proxy: "socks5://username:password@127.0.0.1:1080"
# socks4_proxy: "socks4://127.0.0.1:1080"
# http_proxy: "http://username:password@proxy.example.com:8080"