Status Monitoring
Data sources have two key status indicators:- Status - Boolean indicating if the source is actively configured
- Timestamp - Last time data was received from the source
Health Indicators
Active Sources
A data source is considered healthy when:statusistruetimestampis recent (typically within last 15 minutes)eventsCountis incrementing
Inactive Sources
A data source may be inactive if:statusisfalse(manually disabled)timestampis old (no recent data)eventsCountis zero or not incrementing
Monitoring Examples
Check All Source Status
cURL
Python Monitoring Script
Python
JavaScript Monitoring
JavaScript
Automated Alerts
Send Notifications for Inactive Sources
Python
Metrics Collection
Collect Source Metrics Over Time
Python
Best Practices
- Regular Polling: Check source status every 5-15 minutes
- Threshold Alerts: Alert when sources are inactive for >30 minutes
- Trend Analysis: Track event counts over time to detect anomalies
- Dashboard Integration: Display source health on monitoring dashboards
- Automated Recovery: Attempt to restart or reconfigure failed sources