Monitoring & Logging

Set up monitoring and logging for FabConnect.

Monitoring

Prometheus Metrics

FabConnect exposes metrics at /metrics:

# HELP fabconnect_equipment_connected Number of connected equipment
# TYPE fabconnect_equipment_connected gauge
fabconnect_equipment_connected 24

# HELP fabconnect_messages_total Total SECS messages
# TYPE fabconnect_messages_total counter
fabconnect_messages_total{stream="1",function="13"} 1234

Grafana Dashboard

Import dashboard ID: 12345 from Grafana.com

Logging

Configuration

yaml
logging:
  level: info
  format: json
  output: stdout

Log Levels

  • debug: Detailed debugging
  • info: Normal operations
  • warn: Warnings
  • error: Errors only

Log Aggregation

Works with:

  • ELK Stack (Elasticsearch, Logstash, Kibana)
  • Loki + Grafana
  • Datadog
  • Splunk

Example Log

json
{
  "level": "info",
  "ts": "2025-12-07T10:30:00Z",
  "msg": "Equipment connected",
  "equipment_id": "eq_123",
  "ip": "192.168.1.100"
}

Was this page helpful? /