Analytics & Monitoring
Comprehensive observability for your AI-powered API integrations
MCPify provides enterprise-grade analytics and monitoring to give you complete visibility into your AI integration performance, usage patterns, and costs. Track everything from individual API calls to system-wide trends with our real-time dashboard.
Key Performance Metrics
Request Metrics
- • Total API calls per minute/hour/day
- • Success vs failure rates
- • Error distribution by type
- • Request volume by tool/endpoint
- • Peak usage times and patterns
Performance Metrics
- • End-to-end latency (P50/P95/P99)
- • Gateway processing time
- • Downstream API response times
- • Cache hit rates and effectiveness
- • Queue depth and processing delays
Token & Cost Analytics
- • Token consumption by model
- • Cost per request/tool/user
- • Token efficiency metrics
- • Budget tracking and alerts
- • ROI calculations per integration
Usage Analytics
- • Active users and sessions
- • Tool usage frequency
- • User journey analysis
- • Geographic distribution
- • Agent type breakdown
Real-time Dashboard
Dashboard Features
Time Series Visualization
Interactive charts showing trends over customizable time ranges with drill-down capabilities
Distribution Analysis
Breakdown of usage by tool, endpoint, user segment, and error types
Custom KPIs
Define and track business-specific metrics with configurable thresholds
Intelligent Alerts
Anomaly detection and proactive alerting for performance degradation
// Accessing the dashboard
https://dashboard.mcpify.org
// API for programmatic access
GET https://api.mcpify.org/v1/analytics/metrics
Authorization: Bearer YOUR_API_KEY
// Example response
{
"period": "2024-01-15T00:00:00Z/2024-01-15T23:59:59Z",
"metrics": {
"requests": {
"total": 145892,
"success": 144321,
"failure": 1571,
"success_rate": 0.989
},
"latency": {
"p50": 124,
"p95": 487,
"p99": 1203
},
"tokens": {
"input": 5823419,
"output": 2341892,
"total_cost_usd": 84.32
},
"cache": {
"hits": 98234,
"misses": 47658,
"hit_rate": 0.673
}
}
}
Monitoring & Alerting
Health Monitoring
Continuous health checks ensure your integrations are always available
# Health check configuration
{
"healthChecks": {
"gateway": {
"interval": "30s",
"timeout": "5s",
"unhealthyThreshold": 2
},
"downstream": {
"interval": "60s",
"timeout": "10s",
"retries": 3
}
},
"alerts": [
{
"name": "High Error Rate",
"condition": "error_rate > 0.05",
"window": "5m",
"channels": ["email", "slack", "pagerduty"]
},
{
"name": "Latency Spike",
"condition": "p99_latency > 2000ms",
"window": "1m",
"channels": ["slack"]
}
]
}
Alert Channels
Supported Integrations
- • Email notifications
- • Slack webhooks
- • PagerDuty integration
- • Webhook endpoints
- • SMS via Twilio
Alert Types
- • Performance degradation
- • Error threshold exceeded
- • Rate limit approaching
- • Budget alerts
- • Security incidents
Advanced Analytics Features
AI-Powered Insights
Machine learning models analyze your usage patterns to provide actionable insights
- Anomaly detection for unusual traffic patterns
- Predictive scaling recommendations
- Cost optimization suggestions
- Performance bottleneck identification
- Usage trend forecasting
Custom Reports & Exports
Generate detailed reports for stakeholders and compliance
# Generate monthly usage report
POST https://api.mcpify.org/v1/analytics/reports
{
"type": "monthly_usage",
"period": "2024-01",
"format": "pdf",
"metrics": [
"requests",
"tokens",
"costs",
"errors",
"latency"
],
"groupBy": ["tool", "user", "day"],
"recipients": ["[email protected]"]
}
Data Retention & Privacy
Data Policies
- Metrics Retention: 90 days of detailed metrics, 2 years of aggregated data
- Log Retention: 30 days of detailed logs, configurable per tier
- Privacy Compliance: GDPR and CCPA compliant with data anonymization
- Data Export: Full data export available in JSON, CSV, or Parquet formats
- Right to Deletion: Complete data purge available upon request
External Integrations
Observability Platforms
- • Datadog integration via API
- • New Relic APM support
- • Grafana dashboards
- • Prometheus metrics export
- • Splunk forwarder
Business Intelligence
- • Tableau connector
- • Power BI integration
- • Looker custom views
- • BigQuery export
- • Snowflake data share
Analytics API Reference
# List available metrics
GET /v1/analytics/metrics/catalog
# Get real-time metrics
GET /v1/analytics/metrics/realtime
# Query historical data
POST /v1/analytics/query
{
"metrics": ["requests", "latency_p99", "error_rate"],
"dimensions": ["tool", "hour"],
"filters": {
"tool": ["crm_*"],
"time_range": "last_7_days"
},
"granularity": "hour"
}
# Get cost breakdown
GET /v1/analytics/costs?period=2024-01&groupBy=tool,model
# Export data
POST /v1/analytics/export
{
"format": "parquet",
"destination": "s3://my-bucket/analytics/",
"period": "2024-01"
}
Analytics Best Practices
✅ Recommended Practices
- • Set up alerts for critical thresholds before issues occur
- • Use custom dimensions to track business-specific metrics
- • Regularly review cost analytics to optimize usage
- • Export data to your data warehouse for long-term analysis
- • Create dashboards for different stakeholder groups
- • Monitor cache hit rates to optimize performance
- • Track error patterns to identify integration issues early