PromptGuard provides comprehensive usage tracking to help you monitor API consumption, control costs, and optimize your AI application performance.
Usage Metrics Overview
Key Metrics Tracked
PromptGuard tracks detailed usage metrics across all your API calls:Request Metrics
- Total Requests: Number of API calls made
- Successful Requests: Requests completed without errors
- Failed Requests: Requests that returned errors
- Blocked Requests: Requests stopped by security policies
Token Consumption
- Input Tokens: Tokens in your prompts and messages
- Output Tokens: Tokens in AI model responses
- Total Tokens: Combined input and output token usage
Cost Tracking
- Total Costs: Complete spending across all providers
- Cost per Model: Spending breakdown by AI model
- Cost per Provider: Spending split between OpenAI, Anthropic, etc.
- Daily/Monthly Trends: Cost patterns over time
Performance Metrics
- Average Latency: Mean response time for requests
- P95/P99 Latency: High-percentile response times
- Throughput: Requests per second/minute/hour
- Error Rates: Percentage of failed requests
Dashboard Analytics
Real-Time Usage Dashboard
Access comprehensive usage analytics at app.promptguard.co:Main Dashboard View
- Current Usage: Real-time request and token consumption
- Cost Tracking: Today’s spending and monthly projections
- Performance Overview: Latency and error rate summaries
- Security Events: Blocked requests and threat detection
Detailed Analytics
- Usage Trends: Historical consumption patterns
- Model Comparison: Performance across different AI models
- Geographic Distribution: Usage by region/location
- User Segmentation: Consumption by API key or user
Usage Breakdown
By Time Period
By Model
API Usage Tracking
Current Availability ✅
Developer API - Usage Stats
Get current usage statistics via API:Dashboard API - Detailed Analytics
Access detailed analytics through the dashboard:Roadmap Features 🚧
The following advanced usage tracking features are planned but not yet available:Advanced Usage Queries (Planned)
Budget Controls (Planned)
Automated Reporting (Planned)
Cost Management
Current Dashboard Features ✅
Monitor costs through the dashboard:- Navigate: app.promptguard.co → Projects → [Your Project] → Overview
- View Usage: See current month’s usage and remaining quota
- Billing: Access billing information and subscription details
Cost Optimization Tips
- Model Selection: Use GPT-3.5-turbo for simple tasks when GPT-4 isn’t necessary
- Prompt Engineering: Shorter, more efficient prompts reduce token costs
- Caching: Reuse responses for similar queries (coming soon)
- Monitoring: Track usage patterns to identify optimization opportunities
Rate Limiting and Quotas
Current Limits
Usage limits are based on your subscription plan:| Plan | Monthly Requests | Additional Features |
|---|---|---|
| Free | 1,000 | Basic protection |
| Starter | 10,000 | ML detection |
| Growth | 1,000,000 | Advanced analytics |
| Enterprise | Unlimited | Custom limits |
Monitoring Quotas
View your current usage in the dashboard:- Navigate: app.promptguard.co → Projects → [Your Project] → Overview
- Check Usage: See requests used vs. monthly limit
- Upgrade: Upgrade your plan if you need higher limits
Historical Data
Data Retention
| Plan | Detailed Data | Aggregated Data |
|---|---|---|
| Free | 7 days | 30 days |
| Starter | 30 days | 90 days |
| Growth | 90 days | 365 days |
Need longer retention periods? Contact [email protected] for enterprise solutions with custom retention policies.
Troubleshooting Usage Tracking
Missing Usage Data
Missing Usage Data
Common Causes:
- Requests not properly authenticated
- API key belongs to different project
- Data outside retention period
- Verify API key is correct and active
- Check that API key belongs to the project you’re querying
- Check request timestamps
- Contact support for data recovery
Incorrect Usage Counts
Incorrect Usage Counts
Solutions:
- Verify you’re looking at the correct project
- Check date range filters
- Ensure API key is from the correct project
- Refresh dashboard to get latest data
Performance Metrics Anomalies
Performance Metrics Anomalies
Solutions:
- Check for network issues during measurement period
- Review security events that might affect latency
- Analyze request patterns for outliers
- Check dashboard analytics for detailed breakdowns
Next Steps
Dashboard Analytics
Explore the full monitoring dashboard
Interactions
View detailed security events and interactions
Billing
Manage your subscription and billing
Best Practices
Usage optimization and cost management