# 🐍 OPHION **Open Source Observability Platform β€” AI-Powered Monitoring** [![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL%203.0-blue.svg)](LICENSE) [![Go](https://img.shields.io/badge/Go-1.22-00ADD8.svg)](https://golang.org/) [![Docker](https://img.shields.io/badge/Docker-Compose-2496ED.svg)](https://docs.docker.com/compose/) --- ## O que Γ© o OPHION? OPHION Γ© uma plataforma de observabilidade que combina **mΓ©tricas, logs e traces** com **inteligΓͺncia artificial** para monitoramento proativo de infraestrutura. ### ✨ Diferenciais | Feature | OPHION | Datadog | Grafana | |---------|--------|---------|---------| | MΓ©tricas, Logs, Traces | βœ… | βœ… | βœ… | | **Copilot com IA** | βœ… | ❌ | ❌ | | **Auto-Healing** | βœ… | ❌ | ❌ | | **CorrelaΓ§Γ£o de Alertas com IA** | βœ… | πŸ’° | ❌ | | **PrevisΓ΅es de Capacidade** | βœ… | πŸ’° | ❌ | | Open Source | βœ… | ❌ | βœ… | | **Auto-instrumentaΓ§Γ£o Universal** | βœ… | πŸ’° | ❌ | --- ## πŸš€ Quick Start (1 Comando) ```bash git clone https://github.com/bigtux/ophion.git && cd ophion && docker compose up -d ``` Aguarde ~2 minutos e acesse: - **Dashboard:** http://localhost:3000 - **API:** http://localhost:8080 - **OTLP (traces):** localhost:4317 (gRPC) / localhost:4318 (HTTP) πŸ“– [Guia Completo de Quick Start](docs/QUICK_START.md) --- ## πŸ”§ Instrumentar Sua AplicaΓ§Γ£o ### Script Universal ```bash # Auto-detecta a linguagem ./instrument.sh my-container # Ou especifique ./instrument.sh my-container nodejs ./instrument.sh my-container python ./instrument.sh my-container java ./instrument.sh my-container dotnet ``` ### Linguagens Suportadas | Linguagem | MΓ©todo | Complexidade | |-----------|--------|--------------| | **.NET** | Auto-instrumentation | 🟒 Zero code | | **Node.js** | Auto-instrumentation | 🟒 Zero code | | **Python** | Auto-instrumentation | 🟒 Zero code | | **Java** | Java Agent | 🟒 Zero code | | **Go** | SDK (compile-time) | 🟑 Pequenas mudanΓ§as | | **PHP** | SDK | 🟑 Pequenas mudanΓ§as | πŸ“– [Guia de InstrumentaΓ§Γ£o](docs/QUICK_START.md#-2-instrument-your-application) --- ## πŸ“‹ Requisitos | Recurso | MΓ­nimo | Recomendado | |---------|--------|-------------| | CPU | 2 cores | 4+ cores | | RAM | 4 GB | 8+ GB | | Disco | 20 GB SSD | 100+ GB SSD | | Docker | 20.10+ | Latest | | Docker Compose | v2+ | Latest | --- ## πŸ“¦ Arquitetura ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ YOUR APPLICATIONS β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Node.js β”‚ β”‚ Python β”‚ β”‚ Java β”‚ β”‚ .NET β”‚ β”‚ Go β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ OTLP (4317/4318) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ OPHION STACK β–Ό β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ OpenTelemetry Collector β”‚ β”‚ β”‚ β”‚ (process, batch, export) β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Dashboard │◄──► Server ◄──►│ PostgreSQL β”‚ β”‚ β”‚ β”‚ (Next.js) β”‚ (Go API) β”‚ ClickHouse β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ Redis β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## πŸ” AutenticaΓ§Γ£o ### Para AplicaΓ§Γ΅es (OTLP) Envie traces para o OpenTelemetry Collector (porta 4317/4318) - sem auth necessΓ‘rio. ### Para API Use `AGENT_KEY` para agents ou JWT para dashboard: ```bash # .env AGENT_KEY=my-secret-key ``` --- ## πŸ“¦ Estrutura do Projeto ``` ophion/ β”œβ”€β”€ docker-compose.yml # Stack completa β”œβ”€β”€ instrument.sh # Script de instrumentaΓ§Γ£o β”œβ”€β”€ cmd/ β”‚ β”œβ”€β”€ server/ # API Server (Go) β”‚ └── agent/ # Agent de coleta β”œβ”€β”€ dashboard/ # Frontend (Next.js) β”œβ”€β”€ deploy/ β”‚ β”œβ”€β”€ docker/ # Docker configs β”‚ └── instrumentation/ # Container com agents OTel β”œβ”€β”€ internal/ # CΓ³digo interno Go └── docs/ β”œβ”€β”€ QUICK_START.md # ⭐ Comece aqui β”œβ”€β”€ INSTALL.md └── SECURITY.md ``` --- ## πŸ“– DocumentaΓ§Γ£o - ⭐ [Quick Start](docs/QUICK_START.md) - Comece em 5 minutos - [InstalaΓ§Γ£o AvanΓ§ada](docs/INSTALL.md) - [SeguranΓ§a](docs/SECURITY.md) - [Manual Completo](docs/MANUAL_COMPLETO.md) --- ## πŸ› οΈ Desenvolvimento ```bash # Clonar git clone https://github.com/bigtux/ophion.git cd ophion # Compilar Go go build ./... # Rodar localmente docker compose up -d postgres redis go run ./cmd/server # Testes go test ./... ``` --- ## πŸ†˜ Suporte - **Issues:** https://github.com/bigtux/ophion/issues - **Email:** suporte@ophion.com.br --- ## πŸ“„ LicenΓ§a AGPL-3.0 (Community Edition) ---

Made with πŸ–€ in Brazil