Overview
The Resource Service provides comprehensive monitoring capabilities for tracking wrapper health, viewing execution logs, and diagnosing issues. This guide covers all monitoring endpoints and best practices.Health Status Monitoring
Check Wrapper Health
Get the current health status of a wrapper:Health Status Values
HEALTHY
HEALTHY
Meaning: Wrapper process is running normally and sending data as expected.Action: No action needed. Continue monitoring periodically.Characteristics:
- Process is alive and responsive
- For API wrappers: Data is being sent regularly
- No error logs in recent output
STALLED
STALLED
Meaning: Process is running but hasn’t sent data within expected timeframe.Action: Check logs for errors. May need to restart the wrapper.Possible Causes:
- API endpoint is unresponsive
- Network connectivity issues
- Data source has no new data
- Internal logic error
DEGRADED
DEGRADED
Meaning: Process is running but experiencing intermittent issues.Action: Review logs for warnings. Monitor closely for potential failure.Possible Causes:
- Partial API failures
- Rate limiting
- Memory pressure
- Network instability
CRASHED
CRASHED
Meaning: Process has terminated unexpectedly.Action: Review crash logs, fix the issue, and restart the wrapper.Possible Causes:
- Unhandled exception in generated code
- API authentication failure
- File not found (for file-based wrappers)
- Out of memory
UNKNOWN
UNKNOWN
Meaning: Cannot determine process state (usually connectivity issue).Action: Check service connectivity. Verify wrapper exists.Possible Causes:
- Database connection timeout
- Service restart in progress
- Invalid wrapper ID
Detailed Monitoring Information
Get comprehensive monitoring details:Viewing Execution Logs
Access real-time wrapper logs:Log Format
- [STDOUT] - Normal execution output
- [STDERR] - Error messages and exceptions
Logs are captured from both stdout and stderr of the wrapper process. The limit parameter returns the most recent N lines.
Retrieving Wrapper Details
Get complete wrapper information including status and metadata:Listing All Wrappers
Retrieve a list of all wrappers:Monitoring Best Practices
Automated Health Checks
Implement periodic health monitoring:Dashboard Monitoring
Create a monitoring dashboard:Troubleshooting Common Issues
Wrapper keeps crashing
Wrapper keeps crashing
Diagnosis Steps:
- Check stderr logs for exception messages
- Verify API credentials are correct (for API wrappers)
- Ensure file still exists (for file wrappers)
- Check for resource limits (memory, disk space)
- Update API credentials in source_config
- Re-upload missing files
- Regenerate wrapper with corrected configuration
Wrapper is stalled
Wrapper is stalled
Diagnosis Steps:
- Check health status and logs
- Verify API endpoint is accessible
- Check network connectivity
- Review last_data_sent timestamp
- API endpoint may be down - contact data provider
- Check firewall/network settings
- Restart wrapper: stop and re-execute
No data being collected
No data being collected
Diagnosis Steps:
- Check wrapper status (should be ‘executing’)
- Verify is_actively_executing is true
- Review logs for errors
- Check data_points_count (should increase over time)
- Ensure wrapper is actually running
- Check API returns data in expected format
- Verify date_field and value_field are correct
- Check RabbitMQ connectivity
Duplicate data points
Duplicate data points
Diagnosis Steps:
- Check high_water_mark is updating correctly
- Review checkpoint behavior in logs
- Verify phase transitions
- Ensure checkpointing is working (check database updates)
- For API wrappers, verify date filtering logic
- May need to regenerate wrapper with improved logic
Monitoring Metrics to Track
Uptime
Track
uptime_seconds to measure wrapper stability and reliability.Data Volume
Monitor
data_points_count to ensure continuous data collection.Last Activity
Watch
last_data_sent to detect stalled wrappers quickly.Health Trends
Log health status over time to identify patterns and issues.
Next Steps
Wrapper Execution
Learn about wrapper execution modes and lifecycle
Creating Resources
Create and manage resources for wrappers
API Reference
View complete monitoring API documentation
Generating Wrappers
Generate new wrappers from data sources