init
This commit is contained in:
76
symon.toml
Normal file
76
symon.toml
Normal file
@@ -0,0 +1,76 @@
|
||||
# Symon Configuration File
|
||||
# Lightweight system metrics exporter for OpenTelemetry
|
||||
|
||||
# Collection interval in seconds
|
||||
# How often to collect system metrics
|
||||
collection_interval_secs = 5
|
||||
|
||||
# OTLP configuration
|
||||
[otlp]
|
||||
# OTLP endpoint (gRPC)
|
||||
endpoint = "http://localhost:4317"
|
||||
|
||||
# Export interval in seconds
|
||||
# How often to export metrics to OTLP collector
|
||||
export_interval_secs = 10
|
||||
|
||||
# Service name that will appear in metrics
|
||||
service_name = "symon"
|
||||
|
||||
# Service version
|
||||
service_version = "0.1.0"
|
||||
|
||||
# Export timeout in seconds
|
||||
export_timeout_secs = 30
|
||||
|
||||
# Additional resource attributes (key-value pairs)
|
||||
[otlp.resource_attributes]
|
||||
environment = "production"
|
||||
# host = "server-01"
|
||||
# datacenter = "us-east-1"
|
||||
|
||||
# Metrics configuration - enable/disable specific metric types
|
||||
[metrics]
|
||||
cpu = true # CPU usage per core
|
||||
memory = true # RAM and swap usage
|
||||
network = true # Network RX/TX
|
||||
disk = true # Disk usage
|
||||
processes = false # Top 10 processes (disabled by default - can generate high cardinality)
|
||||
temperature = true # System temperatures (if available)
|
||||
|
||||
# Process filtering configuration
|
||||
# Only used when processes = true
|
||||
[metrics.process_filter]
|
||||
# Option 1: Use an external file for server-specific process lists
|
||||
# include = "processes.toml"
|
||||
|
||||
# Option 2: Configure inline
|
||||
# Filter mode: "whitelist" (only listed processes) or "blacklist" (exclude listed)
|
||||
filter_mode = "whitelist"
|
||||
|
||||
# List of process names to filter (case-insensitive substring match)
|
||||
names = [
|
||||
# Web servers
|
||||
"nginx",
|
||||
"apache",
|
||||
|
||||
# Databases
|
||||
"postgres",
|
||||
"mysql",
|
||||
"redis",
|
||||
|
||||
# Application servers
|
||||
# "java",
|
||||
# "node",
|
||||
# "python",
|
||||
]
|
||||
|
||||
# List of regex patterns to match process names (case-sensitive)
|
||||
patterns = [
|
||||
# Example: Match specific versions
|
||||
# "^nginx-[0-9.]+$",
|
||||
# "^node-v[0-9]+",
|
||||
]
|
||||
|
||||
# List of specific process PIDs to filter
|
||||
pids = []
|
||||
Reference in New Issue
Block a user