75f247e036761f7415c382a69cfd7ca25306a2fc
🐍 OPHION
Open Source Observability Platform — AI-Powered Monitoring
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)
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
🔧 Instrumentar Sua Aplicação
Script Universal
# 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 |
📋 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:
# .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 - Comece em 5 minutos
- Instalação Avançada
- Segurança
- Manual Completo
🛠️ Desenvolvimento
# 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
Description
🐍 OPHION - Open Source Observability Platform with AI-Powered Monitoring
https://ophion.com.br
Languages
Go
46.9%
TypeScript
26.6%
Shell
15.4%
HTML
6.9%
Dockerfile
2.9%
Other
1.3%