celers-cli 0.1.0

Command-line interface for CeleRS worker and queue management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
# celers-cli TODO

> Command-line interface for CeleRS task queue management

## Status: ✅ FEATURE COMPLETE

Full-featured CLI for worker management, queue inspection, and DLQ operations.

## Completed Features

### Commands ✅

#### Worker Command
- [x] Start worker with configuration
- [x] Redis broker support
- [x] Queue mode selection (FIFO/Priority)
- [x] Concurrency configuration
- [x] Max retries configuration
- [x] Timeout configuration
- [x] Graceful shutdown handling

#### Status Command
- [x] Display queue statistics
- [x] Show pending task count
- [x] Show DLQ size
- [x] Formatted table output
- [x] Colored warnings for DLQ

#### DLQ Commands
- [x] `dlq inspect` - View failed tasks
- [x] `dlq clear` - Remove all DLQ tasks
- [x] `dlq replay` - Retry specific task
- [x] Confirmation prompts for destructive operations
- [x] Task metadata display

#### Init Command
- [x] Generate default configuration file
- [x] TOML format support
- [x] Commented configuration template

#### Queue Commands
- [x] `queue list` - List all queues (Redis)
- [x] `queue purge` - Clear all tasks from queue
- [x] Confirmation prompts for destructive operations

#### Task Commands
- [x] `task inspect <id>` - View specific task details
- [x] `task cancel <id>` - Cancel running or pending task
- [x] Search across main queue, DLQ, and delayed queue
- [x] Detailed task metadata display
- [x] Cancellation via Redis Pub/Sub

### Configuration ✅
- [x] TOML file support
- [x] Command-line argument override
- [x] Broker configuration (type, URL, queue)
- [x] Worker configuration (concurrency, retries, timeout)
- [x] Multiple queue support

### User Experience ✅
- [x] Colored output (green, yellow, red, cyan)
- [x] Formatted tables using `tabled`
- [x] Clear error messages
- [x] Help text for all commands
- [x] Usage examples in help

### Documentation ✅
- [x] Comprehensive README
- [x] Command examples
- [x] Configuration guide
- [x] Common workflows

### Additional Commands
- [x] `metrics` - Display live metrics ✅
  - [x] Metric filtering by name pattern
  - [x] Export to JSON/Prometheus/text formats
  - [x] Save metrics to file
  - [x] Real-time metrics refresh with auto-update ✅
    - [x] Watch mode with configurable refresh interval
    - [x] Clear screen for better readability
    - [x] Display last updated timestamp
- [x] `task cancel <id>` - Cancel running task ✅
- [x] `task retry <id>` - Retry failed task ✅
- [x] `task result <id>` - Show task result ✅
- [x] `task logs <id>` - Show task execution logs ✅
  - [x] Display structured JSON logs with color coding
  - [x] Support for log levels (ERROR, WARN, INFO, DEBUG)
  - [x] Limit number of log lines shown
  - [x] Timestamp display
- [x] `task requeue <id>` - Move task to different queue ✅
- [x] `db` - Database operations ✅
  - [x] `db test-connection` - Test database connection ✅
  - [x] `db health` - Check database health ✅
  - [x] `db pool-stats` - Show connection pool statistics ✅

### Worker Management ✅
- [x] `worker-mgmt list` - Show all running workers ✅
  - [x] Show worker status (active)
  - [x] Display last heartbeat
- [x] `worker-mgmt stop <id>` - Stop specific worker ✅
  - [x] Graceful shutdown option
  - [x] Immediate shutdown option
  - [x] Pub/Sub command delivery
- [x] `worker-mgmt scale <n>` - Scale to N workers ✅
  - [x] Display current vs target worker count
  - [x] Instructions for scaling up/down
  - [x] Auto-scaling based on queue depth ✅
    - [x] `autoscale start` - Start auto-scaling service ✅
    - [x] `autoscale status` - Show auto-scaling status ✅
    - [x] Configurable min/max workers ✅
    - [x] Queue depth thresholds ✅
    - [x] Automatic scaling recommendations ✅
- [x] `worker-mgmt logs <id>` - Stream worker logs ✅
  - [x] Filter by log level (error, warn, info, debug)
  - [x] Follow mode (tail -f)
  - [x] Display initial N lines
  - [x] Color-coded log levels
  - [x] JSON log parsing
  - [x] Detect worker shutdown
- [x] `worker-mgmt stats <id>` - Detailed worker statistics ✅
  - [x] Tasks processed/failed
  - [x] Worker uptime
  - [x] Heartbeat status
- [x] `worker-mgmt pause <id>` - Pause task processing ✅
  - [x] Set pause flag in Redis
  - [x] Timestamp tracking
- [x] `worker-mgmt resume <id>` - Resume task processing ✅
  - [x] Remove pause flag
  - [x] Restore normal operation
- [x] `worker-mgmt drain <id>` - Drain worker (no new tasks) ✅
  - [x] Set draining flag in Redis
  - [x] Timestamp tracking

### Queue Management Enhancements
- [x] `queue pause <name>` - Pause queue processing ✅
- [x] `queue resume <name>` - Resume queue processing ✅
- [x] `queue stats <name>` - Detailed queue statistics ✅
  - [x] Queue type detection (FIFO/Priority)
  - [x] Pending, processing, DLQ, and delayed task counts
  - [x] Total task count
  - [x] Task type distribution (top 10)
  - [x] Health warnings (DLQ size, stuck workers)
- [x] `queue move <src> <dst>` - Move tasks between queues ✅
  - [x] Bulk move all tasks from source to destination
  - [x] Support for FIFO and Priority queue types
  - [x] Automatic queue type conversion
  - [x] Progress indicator for large batches
  - [x] Confirmation requirement for safety
- [x] `queue export <name>` - Export queue to file ✅
  - [x] Export tasks to JSON file with metadata
  - [x] Queue type and timestamp information
  - [x] File size reporting
- [x] `queue import <file>` - Import queue from file ✅
  - [x] Import tasks from JSON export file
  - [x] Preview import information before confirmation
  - [x] Progress indicator for large imports
  - [x] Queue type conversion support
  - [x] Confirmation requirement for safety

### Scheduling & Beat ✅
- [x] `schedule list` - List scheduled tasks ✅
  - [x] Display task name, cron expression, status (active/paused)
  - [x] Show last run time
  - [x] Formatted table output
- [x] `schedule add` - Add new scheduled task ✅
  - [x] Cron expression validation
  - [x] Task name and queue configuration
  - [x] JSON arguments support
  - [x] Duplicate schedule detection
- [x] `schedule remove <name>` - Remove scheduled task ✅
  - [x] Confirmation requirement
  - [x] Remove pause flags
- [x] `schedule pause <name>` - Pause schedule ✅
  - [x] Timestamp tracking
  - [x] Resume instructions
- [x] `schedule resume <name>` - Resume paused schedule ✅
  - [x] Pause status checking
  - [x] Resume confirmation
- [x] `schedule trigger <name>` - Manually trigger task ✅
  - [x] Pub/Sub trigger command
  - [x] Beat scheduler integration
  - [x] Subscriber status reporting
- [x] `schedule history <name>` - Show execution history ✅
  - [x] Display execution history from Redis
  - [x] Show timestamp, status, and task ID
  - [x] Limit number of entries shown

### Configuration
- [x] Multiple broker support in single config ✅
  - [x] Broker failover configuration ✅
    - [x] Multiple failover URLs support
    - [x] Configurable retry attempts
    - [x] Configurable timeout settings
- [x] Environment variable expansion ✅
  - [x] ${VAR} syntax support
  - [x] ${VAR:default} default values support
- [x] Config validation command ✅
  - [x] Schema validation (TOML parsing)
  - [x] Broker type validation
  - [x] Queue mode validation
  - [x] Worker configuration validation with warnings
  - [x] Redis connection testing
  - [x] Auto-scaling configuration validation ✅
  - [x] Alert configuration validation ✅
  - [x] PostgreSQL connection testing ✅
  - [x] MySQL/AMQP/SQS connection guidance (manual testing instructions provided)
- [x] Profile support (dev, staging, prod) ✅
  - [x] Profile-specific configuration files ✅
  - [x] Configuration merging/inheritance ✅
  - [x] Environment-specific overrides ✅

### Monitoring Integration
- [x] Export metrics to file ✅
  - [x] JSON, Prometheus, text formats ✅
- [x] Alert configuration ✅
  - [x] `alert start` - Start alert monitoring service ✅
  - [x] `alert test` - Test webhook notification ✅
  - [x] Threshold-based alerts (DLQ, failed tasks) ✅
  - [x] Configurable check intervals ✅
- [x] Webhook notifications ✅
  - [x] Custom webhook URLs ✅
  - [x] JSON payload with timestamp ✅
  - [x] Automatic alert triggering ✅
- [x] Live dashboard mode (TUI) ✅
  - [x] Real-time task flow visualization ✅
  - [x] Queue depth gauge ✅
  - [x] Interactive controls (press 'q' to quit) ✅

### Database Support
- [x] PostgreSQL broker support in CLI ✅
  - [x] Connection string validation ✅
  - [x] Connection testing ✅
  - [x] `db test-connection` - Test database connection ✅
  - [x] `db health` - Check database health ✅
- [x] Database health checks ✅
  - [x] Connection testing ✅
  - [x] PostgreSQL version detection ✅
  - [x] Connection pool status ✅
  - [x] Query performance metrics ✅
- [x] Connection testing ✅
  - [x] Latency measurement ✅
  - [x] Benchmark mode (10 queries) ✅
  - [x] Authentication verification ✅
  - [x] Password masking in output ✅
- [x] Database migration commands ✅
  - [x] Apply migrations ✅
  - [x] Rollback migrations (with manual instructions) ✅
  - [x] Migration status ✅

### Debugging & Troubleshooting ✅
- [x] `debug task <id>` - Debug task execution ✅
  - [x] Display task logs with color-coded levels
  - [x] Show task metadata
  - [x] Inspect task state in queue
- [x] `debug worker <id>` - Debug worker issues ✅
  - [x] Check worker heartbeat and status
  - [x] Display worker statistics
  - [x] Show pause/drain status
  - [x] Display recent worker logs
- [x] `health` - System health diagnostics ✅
  - [x] Broker connection testing
  - [x] Queue status checks
  - [x] DLQ size monitoring
  - [x] Queue pause status detection
  - [x] Memory usage reporting
  - [x] Health recommendations
- [x] `doctor` - Automatic problem detection ✅
  - [x] Broker connectivity checks
  - [x] Queue health analysis
  - [x] Worker availability monitoring
  - [x] Queue pause status detection
  - [x] Memory usage inspection
  - [x] Issue prioritization (critical vs warnings)
  - [x] Actionable recommendations

### Reporting & Analytics ✅
- [x] `report daily` - Daily execution report ✅
  - [x] Display daily task metrics
  - [x] Show total tasks, succeeded, failed, retried
  - [x] Calculate average execution time
- [x] `report weekly` - Weekly statistics ✅
  - [x] Aggregate daily metrics for 7 days
  - [x] Calculate success and failure rates
  - [x] Display percentage breakdowns
- [x] `analyze bottlenecks` - Find performance issues ✅
  - [x] Check queue depth and worker count
  - [x] Detect high DLQ size
  - [x] Identify bottlenecks
  - [x] Provide actionable recommendations
- [x] `analyze failures` - Analyze failure patterns ✅
  - [x] Group failures by task type
  - [x] Display top failing tasks
  - [x] Provide troubleshooting recommendations

## Testing Status

- [x] Unit tests for configuration parsing ✅
  - [x] Default configuration tests
  - [x] Serialization/deserialization tests
  - [x] Validation tests
  - [x] Environment variable expansion tests
  - [x] File I/O tests
  - [x] Broker failover configuration tests ✅
  - [x] Auto-scaling configuration tests ✅
  - [x] Alert configuration tests ✅
  - [x] Profile configuration tests ✅
- [x] Unit tests for command logic ✅
  - [x] Task ID parsing validation
  - [x] Worker ID extraction
  - [x] Log level matching
  - [x] Redis key formatting
  - [x] Queue key formatting
  - [x] JSON log parsing
  - [x] Limit range calculations
  - [x] Diagnostic thresholds
  - [x] Shutdown channel naming
  - [x] Timestamp formatting
  - [x] Password masking in URLs ✅
- [x] Unit tests for enhanced utilities (v1.1) ✅
  - [x] String truncation with edge cases
  - [x] Relative time formatting (seconds, minutes, hours, days)
  - [x] Broker URL validation (all schemes)
  - [x] Number formatting with thousands separators
- [x] Integration tests with real brokers ✅
  - [x] Redis broker integration tests ✅
  - [x] PostgreSQL broker integration tests ✅
  - [x] Configuration validation tests ✅
- [x] E2E tests for workflows ✅
  - [x] Queue management workflows ✅
  - [x] DLQ handling workflows ✅
  - [x] Worker management workflows ✅
  - [x] Database operations workflows ✅

## Documentation

- [x] CLI README
- [x] Command usage examples
- [x] Advanced usage patterns ✅
  - [x] Multi-queue management ✅
  - [x] Production workflows ✅
  - [x] Monitoring and alerting ✅
  - [x] Database operations ✅
  - [x] Configuration management ✅
  - [x] Debugging and troubleshooting ✅
  - [x] Automation and scripting ✅
- [x] Shell completion scripts ✅
  - [x] Bash support
  - [x] Zsh support
  - [x] Fish support
  - [x] PowerShell support
  - [x] Elvish support
- [x] Man pages ✅
  - [x] Man page generation command ✅
  - [x] Installation instructions ✅

## Dependencies

- `celers-core`: Core traits
- `celers-worker`: Worker runtime
- `celers-broker-redis`: Redis broker
- `celers-broker-postgres`: PostgreSQL broker
- `celers-metrics`: Metrics collection and export
- `clap`: CLI argument parsing
- `clap_complete`: Shell completion generation
- `clap_mangen`: Man page generation
- `toml`: Configuration files
- `tabled`: Table formatting
- `colored`: Terminal colors
- `redis`: Direct Redis operations for queue management
- `uuid`: Task ID parsing
- `serde_json`: Task deserialization
- `ratatui`: Terminal UI framework
- `crossterm`: Terminal manipulation
- `reqwest`: HTTP client for webhooks

## Binary Output

### Package
- Binary name: `celers`
- Install: `cargo install --path crates/celers-cli`

### Shell Completion ✅

Generate completion scripts:
```bash
# Bash
celers completions bash > /etc/bash_completion.d/celers

# Zsh
celers completions zsh > /usr/share/zsh/site-functions/_celers

# Fish
celers completions fish > ~/.config/fish/completions/celers.fish

# PowerShell
celers completions powershell > celers.ps1

# Elvish
celers completions elvish > celers.elv
```

### Man Pages ✅

Generate and install man pages:
```bash
# Generate man pages
celers manpages -o ./man

# Install man page
sudo cp ./man/celers.1 /usr/share/man/man1/
sudo mandb

# View man page
man celers
```

## Configuration File

Default location: `celers.toml`

```toml
[broker]
type = "redis"
url = "redis://localhost:6379"
queue = "celers"
mode = "fifo"

[worker]
concurrency = 4
poll_interval_ms = 1000
max_retries = 3
default_timeout_secs = 300

queues = ["celers", "high_priority", "low_priority"]
```

## Code Organization ✅

- [x] Utility functions extracted to separate module ✅
  - [x] `command_utils` module with helper functions ✅
  - [x] Comprehensive documentation and examples ✅
  - [x] Full test coverage (100%) ✅
  - [x] Zero warnings from clippy ✅
  - [x] Enhanced utility functions (v1.1) ✅
    - [x] `truncate_string` - Smart string truncation with ellipsis
    - [x] `format_relative_time` - Human-readable relative timestamps
    - [x] `validate_broker_url` - Comprehensive URL validation
    - [x] `format_count` - Thousands separator formatting
    - [x] `print_progress` - Progress bar for long operations
- [x] Database commands extracted to separate module ✅
  - [x] `database` module with db operations ✅
  - [x] Connection testing and benchmarking ✅
  - [x] Health checks and diagnostics ✅
  - [x] Pool statistics and monitoring ✅
  - [x] Migration management ✅
  - [x] Comprehensive documentation with examples ✅
  - [x] Full test coverage (3 unit tests) ✅
  - [x] 5 doc tests for all public functions ✅
  - [x] Zero warnings from clippy ✅

## Library Support ✅

- [x] Hybrid crate (binary + library) ✅
  - [x] `src/lib.rs` exposes commands module ✅
  - [x] `src/lib.rs` exposes command_utils module ✅
  - [x] `src/lib.rs` exposes database module ✅
  - [x] Examples can import `celers_cli::commands`  - [x] Examples can import `celers_cli::command_utils`  - [x] Examples can import `celers_cli::database`  - [x] Programmatic usage supported ✅

### Examples ✅

- [x] `basic_workflow.rs` - Common operational workflows ✅
  - [x] Queue status checking
  - [x] Listing queues
  - [x] Metrics display
  - [x] Health checks
- [x] `monitoring_and_diagnostics.rs` - Production monitoring ✅
  - [x] Doctor diagnostics
  - [x] Bottleneck analysis
  - [x] Failure pattern analysis
  - [x] Daily/weekly reports
  - [x] Worker and queue statistics
- [x] `queue_management.rs` - Queue operations ✅
  - [x] Queue listing and statistics
  - [x] Pause/resume operations
  - [x] Export/import workflows
  - [x] Task migration between queues
  - [x] Backup and restore procedures
- [x] `worker_management.rs` - Worker lifecycle ✅
  - [x] Worker listing and statistics
  - [x] Pause/resume/drain operations
  - [x] Graceful shutdown procedures
  - [x] Scaling strategies
  - [x] Rolling deployment patterns
  - [x] Auto-scaling configuration
- [x] `task_and_dlq_management.rs` - Task operations ✅
  - [x] Task inspection and debugging
  - [x] Cancel/retry operations
  - [x] Task log viewing
  - [x] DLQ inspection and management
  - [x] Task reprioritization
  - [x] Failure handling workflows

## Notes

- CLI is designed for operational tasks, not development
- Requires worker to have registered tasks
- Config file is optional (CLI args work standalone)
- Supports both Redis and PostgreSQL brokers
- Colored output automatically disabled in CI/pipes
- Library mode enables programmatic usage and examples

## 🚀 Enhancement Roadmap (v0.2.0)

### Interactive Mode ✅
- [x] `interactive` - Launch REPL mode for running multiple commands ✅
  - [x] Command history with arrow keys ✅
  - [x] Tab completion for commands and arguments ✅
  - [x] Multi-line editing support ✅
  - [x] Session state persistence ✅
  - [x] Configurable prompt with queue/broker info ✅

### Configuration Wizard
- [ ] `init --wizard` - Interactive configuration setup
  - [ ] Step-by-step broker selection
  - [ ] Connection testing during setup
  - [ ] Queue configuration with validation
  - [ ] Worker settings with recommendations
  - [ ] Auto-scaling and alert setup
  - [ ] Profile selection (dev/staging/prod)

### Backup & Restore ✅
- [x] `backup` - Full broker state backup ✅
  - [x] Export all queues to single archive ✅
  - [x] Include scheduled tasks ✅
  - [x] Include worker configurations ✅
  - [x] Include metrics and statistics ✅
  - [x] Compressed backup format (.tar.gz) ✅
  - [ ] Incremental backup support
- [x] `restore` - Restore from backup ✅
  - [x] Validate backup before restore ✅
  - [x] Selective restore (specific queues) ✅
  - [x] Dry-run mode ✅
  - [ ] Conflict resolution options

### Enhanced Reporting
- [x] CSV export format for reports ✅
  - [x] CSV helper functions ✅
  - [x] Task statistics formatting ✅
  - [ ] Daily/weekly reports to CSV (helper functions ready)
  - [ ] Task execution history export
  - [ ] Worker statistics export
  - [ ] Queue metrics export
- [ ] HTML report generation
  - [ ] Interactive charts and graphs
  - [ ] Shareable reports
  - [ ] Custom report templates

### Performance Enhancements
- [ ] Connection pooling optimization
  - [ ] Configurable pool size
  - [ ] Connection reuse tracking
  - [ ] Pool statistics monitoring
- [ ] Caching for frequently accessed data
  - [ ] Queue statistics cache
  - [ ] Worker list cache with TTL
  - [ ] Configurable cache settings
- [ ] Parallel operations
  - [ ] Batch queue operations
  - [ ] Parallel task inspection
  - [ ] Concurrent worker commands

### Advanced Features
- [ ] Multi-broker management
  - [ ] Manage multiple brokers from single CLI
  - [ ] Cross-broker task migration
  - [ ] Federated queue view
  - [ ] Aggregated metrics
- [ ] Task dependency visualization
  - [ ] ASCII art dependency graph
  - [ ] GraphViz export
  - [ ] Interactive graph navigation
- [ ] Performance profiling
  - [ ] Task execution profiling
  - [ ] Worker performance analysis
  - [ ] Bottleneck detection
  - [ ] Resource usage tracking

### User Experience
- [ ] Enhanced error messages
  - [ ] Actionable suggestions
  - [ ] Common fixes documentation
  - [ ] Error code reference
  - [ ] Debug hints
- [ ] Smart defaults
  - [ ] Auto-detect broker from environment
  - [ ] Intelligent queue selection
  - [ ] Context-aware suggestions
- [ ] Command aliases
  - [ ] Short aliases for common commands
  - [ ] User-defined aliases
  - [ ] Alias management

### Testing & Quality
- [ ] Property-based tests
  - [ ] Command argument validation
  - [ ] Configuration parsing
  - [ ] Data serialization
- [ ] Integration tests with real brokers
  - [ ] Redis integration suite
  - [ ] PostgreSQL integration suite
  - [ ] AMQP integration suite
- [ ] Benchmarks
  - [ ] Command execution benchmarks
  - [ ] Connection pool benchmarks
  - [ ] Serialization benchmarks

### Observability
- [ ] Grafana dashboard templates
  - [ ] Pre-built dashboards
  - [ ] Dashboard export/import
- [ ] Extended alerting integrations
  - [ ] Slack notifications
  - [ ] PagerDuty integration
  - [ ] Email alerts
  - [ ] Custom webhook templates
- [ ] Structured logging
  - [ ] JSON log output option
  - [ ] Log level filtering
  - [ ] Log streaming to external systems