Monitor sfsEdgeStore health and configure alerts.
Enable Prometheus metrics in configuration:
{
"enable_prometheus": true,
"prometheus_path": "/metrics"
}
Access metrics at:
curl http://localhost:8081/metrics
curl http://localhost:8081/api/status
curl http://localhost:8081/api/resources/status
Returns current memory and CPU usage.
sfsEdgeStore includes built-in resource monitoring that runs every 30 seconds.
{
"enable_resource_monitoring": true,
"max_memory_mb": 512,
"max_cpu_percent": 80,
"resource_monitor_interval_seconds": 30
}
When thresholds are exceeded, alerts are triggered via configured channels.
{
"enable_alert_notifications": true,
"alert_notification_channels": ["mqtt", "webhook"],
"alert_mqtt_topic": "sfsEdgeStore/alerts",
"alert_webhook_url": "https://hooks.example.com/alerts",
"alert_min_severity": "warning"
}
| Channel | Configuration | Description |
|---|---|---|
| MQTT | alert_mqtt_topic |
Publish alerts to MQTT topic |
| Webhook | alert_webhook_url |
Send HTTP POST to webhook URL |
info - Informational messageswarning - Warning conditionserror - Error conditionscritical - Critical failurescurl -X POST http://localhost:8081/api/alerts/test
# All alerts
curl http://localhost:8081/api/alerts
# Grouped alerts
curl http://localhost:8081/api/alert-groups
curl http://localhost:8081/api/alerts/notifier/status
sfsEdgeStore automatically monitors device health.
Configured via device_offline_threshold_seconds (default: 300 seconds).
Detects abnormal data patterns based on data_anomaly_threshold_percent.
Analyzes data trends when minimum points (data_trend_min_points) are reached.
curl http://localhost:8081/api/subscription/status
curl -X POST http://localhost:8081/api/subscription/test
curl http://localhost:8081/api/subscription/themes
Access the web dashboard at:
http://localhost:8081/dashboard
Features: