🏭 OpenTelemetry Rednet Collector for ComputerCraft
The powerhouse behind your telemetry infrastructure! This module provides a central collector
that receives metrics and logs from multiple clients over Rednet, batches them efficiently,
and exports to external OpenTelemetry Protocol (OTLP) endpoints. Perfect for building
comprehensive monitoring systems for your ComputerCraft empire! 🏰📊
🌟 Key Features
📡 Rednet Reception: Automatically receives telemetry from multiple clients
📦 Smart Batching: Configurable batching for efficient network usage
🔄 OTLP Export: Native support for OpenTelemetry Protocol endpoints
📊 Metric Aggregation: Proper handling of counters, gauges, and histograms
🧠 Memory Management: Automatic cleanup to prevent memory leaks
📈 Real-time Stats: Built-in monitoring of collector performance
🔧 Flexible Configuration: Customizable batch sizes, intervals, and endpoints
🎮 Perfect For
Central Monitoring Hub: Collect data from hundreds of turtles and computers
Performance Analytics: Aggregate metrics for trend analysis and alerting
Log Aggregation: Centralize logs from distributed automation systems
OTLP Integration: Bridge ComputerCraft telemetry to external monitoring systems
Real-time Dashboards: Feed data to Grafana, Prometheus, or other tools
Debugging Infrastructure: Centralized logging for complex distributed systems
🚨 Important Notes
Resource Requirements: Collectors need sufficient memory for batching and aggregation
Network Capacity: Consider bandwidth when setting batch intervals and sizes
OTLP Endpoints: Requires HTTP access to external endpoints (if using OTLP export)
State Management: Counter states are maintained for proper aggregation
Event Loop Required: Needs an active event loop for Rednet message processing
// Custom log analysis constlogs = collector.getCollectedLogs(); // Process logs for alerts, etc. } }
voidcustomProcessing(); runOsEventLoop();
Example: Multi-Collector Architecture
// Separate collectors for different data types constmetricsCollector = newRednetCollector({ protocol:"metrics_only", otlpMetricsEndpoint:"http://prometheus:9090/api/v1/otlp/v1/metrics", batchInterval:30000 });
🏭 OpenTelemetry Rednet Collector for ComputerCraft
The powerhouse behind your telemetry infrastructure! This module provides a central collector that receives metrics and logs from multiple clients over Rednet, batches them efficiently, and exports to external OpenTelemetry Protocol (OTLP) endpoints. Perfect for building comprehensive monitoring systems for your ComputerCraft empire! 🏰📊
🌟 Key Features
🎮 Perfect For
🚨 Important Notes
Example: Basic Collector Setup
Example: High-Performance Setup
Example: Custom Processing Pipeline
Example: Multi-Collector Architecture