Skip to main content
View rawEdit

Troubleshooting

Guides for diagnosing and resolving common PostgresAI monitoring issues.

Quick diagnostics​

Check component status​

# Docker Compose
docker compose ps

# Expected output
# NAME STATUS
# pgwatch Up
# victoriametrics Up
# grafana Up

Verify metrics flow​

# 1. Check pgwatch is collecting
curl http://localhost:8080/metrics | grep pg_stat

# 2. Check VictoriaMetrics is receiving
curl 'http://localhost:8428/api/v1/query?query=up'

# 3. Check Grafana data source
curl http://monitor:YOUR_PASSWORD@localhost:3000/api/datasources/proxy/1/api/v1/query?query=up

Common issues​

SymptomLikely causeGuide
"No data" in all panelsCollection not runningNo data troubleshooting
"Access denied" errorsMissing permissionsPermission errors
Slow dashboardsQuery performancePerformance tuning
Missing pg_stat_statementsExtension not loadedNo data troubleshooting

Diagnostic commands​

pgwatch logs​

docker compose logs pgwatch --tail 100

VictoriaMetrics logs​

docker compose logs victoriametrics --tail 100

Grafana logs​

docker compose logs grafana --tail 100

PostgreSQL connectivity​

docker compose exec pgwatch psql -h target-host -U monitoring_user -c "select 1"

Health check endpoints​

ComponentEndpointExpected
pgwatchhttp://localhost:8080/health{"status": "ok"}
VictoriaMetricshttp://localhost:8428/healthOK
Grafanahttp://localhost:3000/api/health{"database": "ok"}

Getting help​

  1. Check logs for error messages
  2. Review the specific troubleshooting guide
  3. Search GitHub Issues
  4. Open a new issue with diagnostic output

Sections​