Troubleshooting
Events are not appearing in the dashboard
- Verify the Proxy is running: Run
agentgazer doctorto check service status - Check your baseURL: Ensure your LLM client points to
http://localhost:18900/agents/{agent}/agentgazeror/agents/{agent}/{provider} - Check Proxy logs: Run
agentgazer start -vfor verbose output to see request handling
Proxy cannot detect the Provider
- Use the agentgazer virtual provider: Set the base URL to
http://localhost:18900/agents/my-agent/agentgazerand configure the target provider in Dashboard - Use x-target-url: Add the
x-target-urlheader to explicitly specify the target - Check the Provider detection order: Path prefix -> Host header -> Path pattern -> x-target-url
- Check the Proxy logs: The Proxy outputs detection results and warnings to the console
Receiving 429 Too Many Requests
- Rate limit: Maximum of 1,000 events per minute
- Increase buffer size: A larger
maxBufferSizereduces flush frequency - Check Retry-After: The
Retry-Afterheader in the response indicates how many seconds to wait
Agent status shows "unknown"
- Confirm heartbeats are being sent: Use
at.heartbeat()to send heartbeats periodically (recommended every 30 seconds) - Timeout threshold: If no heartbeat is received for more than 10 minutes, the Agent is marked as "down"
Dashboard login fails
- Verify the Token: Check the Token in
~/.agentgazer/config.json - Regenerate the Token: Run
agentgazer reset-tokento generate a new Token - Confirm the server is running: Run
agentgazer doctorto check server status
Cost calculations are incorrect
- Verify model names: Cost calculation relies on the pricing table in
@agentgazer/shared. Model name lookup is case-insensitive (e.g., bothGPT-4oandgpt-4owill match) - Negative token values: If negative token counts are passed, cost calculation returns
null - Manually specify cost_usd: If automatic calculation is inaccurate, pass the
cost_usdfield manually intrack()
Port conflicts
If the default ports are already in use, start with custom ports:
bash
agentgazer start --port 9090 --proxy-port 5000Database issues
The SQLite database is located at ~/.agentgazer/data.db. To reset it:
bash
# Stop the service, then delete the database file
rm ~/.agentgazer/data.db
# Restart — the system will automatically create a new database
agentgazer start