feat: add total calls and available websites status
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user