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:
29
README.md
29
README.md
@@ -42,6 +42,7 @@ Isso irá iniciar:
|
||||
- **Api (Flask)** em `http://localhost:5000`
|
||||
- **Grafana** em `http://localhost:3000` (admin/admin)
|
||||
- **Prometheus** em `http://localhost:9090`
|
||||
- **Blackbox Exporter** em `http://localhost:9115`
|
||||
|
||||
### 4. Verificar saúde da API
|
||||
```bash
|
||||
@@ -135,6 +136,34 @@ curl http://localhost:5000/api/summary
|
||||
3. **Metrics**: Selecione `ticket_duration_seconds`
|
||||
4. **Visualization**: Selecione `Stat` ou `Time series`
|
||||
|
||||
### Painel com Disponibilidade de Aplicações Externas
|
||||
|
||||
Este projeto já provisiona um painel de tabela chamado **Aplicações Externas - Disponibilidade** usando a métrica Prometheus `probe_success` do Blackbox Exporter.
|
||||
|
||||
Para adicionar/remover aplicações monitoradas, edite `prometheus.yml` no job `blackbox-http`:
|
||||
|
||||
```yaml
|
||||
- job_name: 'blackbox-http'
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx]
|
||||
static_configs:
|
||||
- targets:
|
||||
- https://seu-app-1.com
|
||||
labels:
|
||||
app_name: Meu App 1
|
||||
- targets:
|
||||
- https://seu-app-2.com/health
|
||||
labels:
|
||||
app_name: Meu App 2
|
||||
```
|
||||
|
||||
Depois disso, aplique:
|
||||
|
||||
```bash
|
||||
docker-compose restart prometheus blackbox-exporter
|
||||
```
|
||||
|
||||
## 🐛 Troubleshooting
|
||||
|
||||
### Erro: "Failed to authenticate with API"
|
||||
|
||||
Reference in New Issue
Block a user