π₯οΈ AVL Console
World-Class Developer Portal and Web Dashboard for AVL Cloud Platform
ποΈ Complete Control | βοΈ Intuitive UI | π Real-Time Monitoring | π Sub-10ms Latency
β¨ Features
π― Core Capabilities
- π Real-Time Dashboard: Live metrics, resource overview, activity feed with WebSocket updates
- ποΈ AvilaDB Explorer: Interactive query editor, document browser, schema visualization
- πΎ Storage Browser: S3-compatible file management with drag-and-drop uploads
- π Observability Suite: Metrics, logs, distributed traces with advanced filtering
- π° Billing & Cost Tracking: Usage analytics, cost breakdown, budget alerts
- π Security: JWT authentication, RBAC, audit logs, rate limiting
- π Multi-Region: Global deployment support with region-aware routing
- β‘ Performance: Sub-10ms latency in Brazil, optimized for LATAM
π Advanced Features (NEW!)
- π€ AI Assistant: Natural language to SQL with query explanations and optimization tips (v0.3.0)
- π¨ Visual Query Builder: Drag-and-drop SQL query constructor with real-time generation (v0.2.0)
- π¬ Advanced Monitoring: ML-powered anomaly detection, predictive insights, smart alerts (v0.2.0)
- π₯ Team Management: Enterprise RBAC with 7 granular permissions, audit log, user invitations (v0.2.0)
π Learn More:
- AI_ASSISTANT.md - Natural Language to SQL Guide
- ADVANCED_FEATURES.md - Complete Advanced Features Documentation
π οΈ Developer Experience
- REST API: Comprehensive API with OpenAPI/Swagger documentation
- WebSocket: Real-time updates for dashboard and logs
- CLI Integration: Works seamlessly with
avlCLI - Templates: Server-side rendered with Askama
- Responsive: Mobile-first design with dark mode support
- i18n: Full support for pt-BR and en-US
ποΈ Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AVL Console Frontend (SSR) β
β Modern UI with WebSocket Real-Time Updates β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Axum REST API + WebSocket Server β
β Auth β’ Rate Limiting β’ CORS β’ Compression β’ Trace β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββ¬ββββββββββ
β AvilaDB β Storage β Observabilityβ Billing β
β Explorer β Browser β Dashboard β Tracker β
ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββ΄ββββββββββ
π Quick Start
Installation
# Add to Cargo.toml
Basic Usage
use ;
async
Run Example
# Start the console server
# Or with custom configuration
AVL_CONSOLE_PORT=3000
Access Console
π₯οΈ Console: http://localhost:8080/dashboard
ποΈ AvilaDB: http://localhost:8080/databases
πΎ Storage: http://localhost:8080/storage
π Metrics: http://localhost:8080/observability
π° Billing: http://localhost:8080/billing
βοΈ Configuration
Environment Variables
# Server
AVL_CONSOLE_BIND=127.0.0.1
AVL_CONSOLE_PORT=8080
AVL_CONSOLE_DEBUG=false
# Endpoints
AVL_AUTH_ENDPOINT=http://localhost:8001
AVL_AVILADB_ENDPOINT=http://localhost:8000
AVL_STORAGE_ENDPOINT=http://localhost:8002
AVL_OBSERVABILITY_ENDPOINT=http://localhost:8003
# Security
AVL_CONSOLE_SECRET=your-secret-key-change-in-production
AVL_CONSOLE_CORS_ORIGINS=http://localhost:8080
# Rate Limiting
AVL_CONSOLE_RATE_LIMIT=100 # requests per minute
Programmatic Configuration
use ConsoleConfig;
let config = ConsoleConfig ;
π Features in Detail
Dashboard
- Resource Overview: Databases, storage, queues, functions
- Real-Time Metrics: CPU, memory, requests/sec, error rate
- Activity Feed: Recent operations and events
- Health Status: Service status indicators
- Cost Summary: Current month usage and projections
AvilaDB Explorer
- Query Editor: Syntax highlighting, auto-complete
- Document Browser: JSON viewer with search and filters
- Schema Visualization: Collection structure and indexes
- Performance Metrics: Query execution time and RU consumption
- Batch Operations: Import/export data in JSON/CSV
Storage Browser
- File Management: Upload, download, delete, rename
- Folder Navigation: Hierarchical bucket browsing
- Presigned URLs: Generate temporary access links
- Metadata Editor: Set content-type, cache-control, etc.
- Batch Operations: Multi-file uploads with progress
Observability
- Metrics Dashboard: Time-series charts with Chart.js
- Log Viewer: Real-time logs with search and filters
- Distributed Tracing: Request flow visualization
- Alert Configuration: Custom alerts on metrics
- Export: Download logs and metrics in various formats
Billing
- Usage Dashboard: Current month costs and trends
- Service Breakdown: Cost per service (DB, storage, etc.)
- Invoice History: Past invoices with download
- Budget Alerts: Email notifications on thresholds
- Cost Estimation: Projected costs based on usage
π Security
- Authentication: JWT-based session management
- Authorization: Role-based access control (RBAC)
- Rate Limiting: Per-user request throttling
- CORS: Configurable cross-origin policies
- Audit Logs: Complete action history
- Secrets Management: Secure credential storage
π API Reference
Health Check
Authentication
{
}
List Databases
Execute Query
{
}
π§ͺ Testing
# Run all tests
# Run integration tests
# Run with logging
RUST_LOG=debug
π¦ Building
# Development build
# Production build (optimized)
# Build for specific target
π³ Docker
FROM rust:1.75 as builder
WORKDIR /app
COPY . .
RUN cargo build --release
FROM debian:bookworm-slim
COPY --from=builder /app/target/release/avl-console /usr/local/bin/
EXPOSE 8080
CMD ["avl-console"]
π€ Contributing
Contributions are welcome! Please read our Contributing Guide.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing) - Commit your changes (
git commit -am 'Add amazing feature') - Push to the branch (
git push origin feature/amazing) - Open a Pull Request
π License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.
ποΈ Built by Avila
Part of the AVL Cloud Platform - Brazil's premier cloud infrastructure.
- Website: https://avila.cloud
- Documentation: https://docs.avila.cloud
- Support: support@avila.cloud
- Community: https://discord.gg/avilacloud
AVL Console - Complete control over your cloud infrastructure π