rsyslog/sidecar/examples/sample-impstats.prom
Andre Lorbach eb7b57ed1d sidecar: add rsyslog impstats exporter
Make a production-ready sidecar exporter to simplify operations and
support consistent deployments across hosts and containers.
Before: no sidecar tooling shipped. After: exporter, scripts, and docs.
Impact: new sidecar defaults to udp on loopback; tests add venv runners.

Implement JSON/CEE/Prometheus parsing with counter/gauge heuristics.
Add UDP burst buffering, size limits, and optional source filtering.
Expose /metrics and /health with parse and drop status reporting.
Provide Dockerfile, docker-compose examples, and systemd install flow.
Add validation and UDP test runners plus sample impstats data.
Document production setup, security posture, and file growth caveats.

With the help of AI-Agents: GitHub Copilot

See also: https://github.com/rsyslog/rsyslog/issues/5824
2026-01-23 07:54:56 +00:00

13 lines
561 B
Promela

# TYPE rsyslog_global_utime counter
rsyslog_global_utime{origin="core"} 123456
# TYPE rsyslog_global_stime counter
rsyslog_global_stime{origin="core"} 78901
# TYPE rsyslog_queue_size gauge
rsyslog_queue_size{name="main queue",origin="core.queue"} 0
# TYPE rsyslog_queue_enqueued counter
rsyslog_queue_enqueued{name="main queue",origin="core.queue"} 5000
# TYPE rsyslog_action_processed counter
rsyslog_action_processed{name="action 0",origin="core.action"} 4950
# TYPE rsyslog_action_failed counter
rsyslog_action_failed{name="action 0",origin="core.action"} 5