добавлены комментарии в конфиг
This commit is contained in:
parent
8829ccaeb9
commit
bad29eb93f
|
|
@ -0,0 +1,104 @@
|
|||
service:
|
||||
# Service identity used in status snapshots and logs.
|
||||
name: wf-agent3
|
||||
# Director sink that receives exported messages.
|
||||
director: stdout_json
|
||||
# Unix socket path for cache control commands.
|
||||
control_socket_path: /var/run/wf-agent3/wf-agent3-control.sock
|
||||
# Idle sleep between supervisor loops in seconds.
|
||||
idle_sleep_seconds: 0.25
|
||||
# Initial reconnect backoff in seconds.
|
||||
restart_backoff_seconds: 0.5
|
||||
# Maximum reconnect backoff in seconds.
|
||||
restart_backoff_max_seconds: 5.0
|
||||
# Timeout for adapter worker join on shutdown.
|
||||
join_timeout_seconds: 2.0
|
||||
cache:
|
||||
# Enables the in-memory cache and cache control plane.
|
||||
enabled: true
|
||||
# Time-to-live for cached messages in seconds.
|
||||
ttl_seconds: 300
|
||||
# Maximum number of messages stored in cache.
|
||||
max_messages: 1000
|
||||
# Default limit used by cache list commands.
|
||||
list_default_limit: 100
|
||||
adapters:
|
||||
# File adapter smoke target.
|
||||
- kind: file
|
||||
config:
|
||||
# Unique adapter identifier used in status and cache records.
|
||||
adapter:
|
||||
adapter_id: file-tail-smoke
|
||||
# Human-readable adapter name.
|
||||
name: File Tail Smoke
|
||||
# File transport configuration.
|
||||
connection:
|
||||
# Select the file connection driver.
|
||||
type: file
|
||||
file:
|
||||
# Input file watched by the adapter.
|
||||
path: .tmp/file_polling_input.json
|
||||
# Acquisition strategy configuration.
|
||||
acquisition:
|
||||
# Polling trigger keeps the runtime active and checking for updates.
|
||||
trigger:
|
||||
# Use polling rather than event-driven acquisition.
|
||||
kind: poll
|
||||
# Poll interval in seconds.
|
||||
interval_seconds: 1
|
||||
# Start the first poll immediately.
|
||||
run_immediately: true
|
||||
# No special detection rules; read the file directly.
|
||||
detection:
|
||||
# Blind detection means no pattern or flag is required.
|
||||
kind: blind
|
||||
# Fetch configuration for the tail-style file read.
|
||||
fetch:
|
||||
# Single-message fetch keeps the smoke run simple.
|
||||
kind: single
|
||||
# Read one item per acquisition batch.
|
||||
batch_size: 1
|
||||
# Tail mode reads only appended content after the initial offset.
|
||||
tail: true
|
||||
# Progress tracking is disabled for this smoke scenario.
|
||||
progress:
|
||||
# No cursor or checkpoint tracking.
|
||||
kind: none
|
||||
# Parse incoming file content as JSON.
|
||||
parsing:
|
||||
# Use the JSON parser for the file payload.
|
||||
kind: json
|
||||
# Content type used in canonical message metadata.
|
||||
content_type: application/json
|
||||
# Validation stub keeps the pipeline shape without extra rules.
|
||||
validation:
|
||||
# Stub validation mode for smoke testing.
|
||||
mode: stub
|
||||
# Prefilter stub keeps all messages.
|
||||
prefilter:
|
||||
# Stub prefilter mode.
|
||||
mode: stub
|
||||
# Marking stub leaves the canonical message unchanged.
|
||||
marking:
|
||||
# Stub marking mode.
|
||||
mode: stub
|
||||
# Bridge export sends canonical messages to the configured director.
|
||||
export:
|
||||
# Use the export bridge instead of a direct sink path.
|
||||
mode: bridge
|
||||
# Director destination label for the bridge.
|
||||
destination: stdout
|
||||
# Command execution is not used in this smoke scenario.
|
||||
commands:
|
||||
# Stub command executor.
|
||||
mode: stub
|
||||
# In-memory observability collects runtime metrics and snapshots.
|
||||
observability:
|
||||
# Keep observability local to the process.
|
||||
sink: in_memory
|
||||
# Namespace used to group observability data for this adapter.
|
||||
namespace: wf_agent3.file_tail_smoke
|
||||
# Adapter wrapper placeholder for file-specific specialization.
|
||||
wrapper:
|
||||
# No wrapper module is needed for the smoke example.
|
||||
path: ""
|
||||
Loading…
Reference in New Issue