feat: add total calls and available websites status
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-03-04 17:58:49 -03:00
parent e1102420a8
commit 0920c1f5c5
9 changed files with 381 additions and 15 deletions

View File

@@ -26,6 +26,7 @@ Isso iniciará automaticamente:
- 🐍 API Python Flask (porta 5000)
- 📊 Grafana (porta 3000)
- 🔥 Prometheus (porta 9090)
- 🌐 Blackbox Exporter (porta 9115)
## 4️⃣ Acesse os serviços
@@ -34,6 +35,7 @@ Isso iniciará automaticamente:
| Grafana | http://localhost:3000 | admin / admin |
| API | http://localhost:5000 | - |
| Prometheus | http://localhost:9090 | - |
| Blackbox Exporter | http://localhost:9115 | - |
## 5️⃣ Teste a API
```bash
@@ -78,6 +80,16 @@ curl http://localhost:5000/api/summary
- Data Source: Prometheus
- Metrics: `ticket_duration_seconds`
## 8️⃣ Monitorar apps externas (Nome / Disponível)
- O dashboard já vem com o painel **Aplicações Externas - Disponibilidade**.
- Para incluir suas aplicações, edite o job `blackbox-http` no arquivo `prometheus.yml` (campo `targets` e `app_name`).
- Aplique com:
```bash
docker-compose restart prometheus blackbox-exporter
```
## ❓ Problemas?
```bash