Monitoring overview
Aiven offers multiple levels of monitoring:Built-in Metrics
- Real-time service metrics
- CPU, memory, disk, network
- Service-specific metrics
- Available in Console
Service Logs
- Service operation logs
- Error and debug messages
- Connection logs
- 4-day retention
Audit Logs
- Organization events
- Project events
- User actions
- Configuration changes
Service metrics
View real-time metrics for all your services:Built-in metrics
Available for every service without additional configuration:- Host Metrics
- Service-Specific
Viewing metrics
Open service in Console
View metrics tab
Adjust time range
Export via CLI
Advanced metrics integration
For detailed service-specific metrics, set up metrics integration:Create PostgreSQL service
Create Grafana service
Integrate services
View dashboards
Service logs
View logs for troubleshooting and monitoring:Accessing service logs
- Aiven Console
- Aiven CLI
Navigate to service
View logs tab
Filter logs
- Filter by severity (error, warning, info)
- Search for specific text
- Adjust time range
Log retention
Log integration
Send logs to OpenSearch for long-term storage and analysis:Create OpenSearch service
Enable log integration
Access OpenSearch Dashboards
Configure retention
Audit logs
Track administrative actions and changes:Organization audit logs
View organization-level events:Navigate to organization logs
Review events
- User invitations and removals
- Permission changes
- Domain verification
- IdP configuration
- Billing group changes
- Organizational unit creation/deletion
Project event logs
View project-level events:Navigate to project logs
Review events
- Service creation/deletion/updates
- Configuration changes
- User access changes
- VPC and peering changes
- Integration changes
- Backup operations
API access to audit logs
organization:audit_logs:read permission. Project logs require project:audit_logs:read permission.Prometheus integration
Expose metrics in Prometheus format for scraping:Enabling Prometheus
Create Prometheus endpoint
Enable for service
Get metrics endpoint
Configure Prometheus scraper
Prometheus in VPC
If using VPC peering, enable public Prometheus access:Prometheus metrics
Available metrics include:- System metrics: CPU, memory, disk, network
- Service metrics: Connections, queries, cache hits
- Custom metrics: Application-specific (service dependent)
External integrations
Integrate Aiven metrics and logs with external platforms:Datadog integration
Send metrics to Datadog:Create Datadog endpoint
Enable for service
View in Datadog
aiven. prefixJolokia (JMX) integration
Access JMX metrics for Kafka and other Java services:Enable Jolokia
Get Jolokia URL
Query JMX metrics
Rsyslog integration
Send logs to external syslog servers:Alerts and notifications
Set up alerts for service issues:Email notifications
Manage project and service notifications:Configure notification emails
Add email addresses
Select notification types
- Service maintenance announcements
- Service issues and outages
- Backup failures
- High resource usage warnings
Service contacts
Add contacts per service:Grafana alerts
Set up alerts in Grafana for metrics:Create alert in Grafana
Configure alert rule
- Set threshold (e.g., CPU > 80%)
- Set evaluation interval
- Configure for clause (duration)
Add notification channel
- Email, Slack, PagerDuty, etc.
- Configure webhook URL or credentials
Test alert
Common alert scenarios
High CPU usage
High CPU usage
- Review slow queries or processes
- Check for unusual traffic patterns
- Consider upgrading service plan
Low disk space
Low disk space
- Review disk usage by table/index
- Clean up unnecessary data
- Enable disk autoscaler
- Upgrade to larger plan
High connection count
High connection count
- Check for connection leaks in applications
- Implement connection pooling
- Review connection limits
- Upgrade service plan
Replication lag
Replication lag
- Check network connectivity
- Review write load on primary
- Check replica performance
- Contact support if persists
Monitoring best practices
Set up metrics integration early
Configure log integration
Create baseline metrics
Set appropriate alert thresholds
Monitor key service metrics
- Resource utilization (CPU, memory, disk)
- Connection count and errors
- Query performance and slow queries
- Replication lag (if applicable)
Review logs regularly
Use audit logs for security
Test alerting
Document runbooks
Automate where possible
Troubleshooting
Metrics not appearing in Grafana
Metrics not appearing in Grafana
- Verify metrics integration is active
- Wait 1-2 minutes for initial data
- Check PostgreSQL has space and is running
- Verify network connectivity if using VPC
Cannot access Prometheus endpoint
Cannot access Prometheus endpoint
- Enable public access:
public_access.prometheus=true - Or access from peered VPC
- Check IP allowlist includes your scraper’s IP
Logs not appearing in OpenSearch
Logs not appearing in OpenSearch
- Verify log integration is active
- Check OpenSearch disk space
- Review index lifecycle management settings
- Check for ingestion errors in OpenSearch
Not receiving alert emails
Not receiving alert emails
- Verify email addresses in project notifications
- Check spam folder
- Verify notification types are enabled
- Test with manual service restart