Skip to main content
Service integrations connect different Aiven services together to enable advanced functionality like metrics visualization, log aggregation, data streaming, and cross-service data flows.

Integration overview

Aiven supports two types of integrations:

Service-to-Service

Direct integration between Aiven services
  • Metrics: PostgreSQL + Grafana
  • Logs: Any service + OpenSearch
  • Data streams: Kafka + other services
  • Cross-service queries

External Endpoints

Integration with external platforms
  • Datadog for metrics
  • Prometheus exporters
  • Rsyslog servers
  • Jolokia for JMX metrics

Common integration patterns

Metrics visualization

Send service metrics to PostgreSQL and visualize in Grafana:
1

Create PostgreSQL service

This service stores time-series metrics data
2

Create Grafana service

Grafana provides dashboards for visualization
3

Integrate Grafana with PostgreSQL

This creates the data source connection in Grafana
4

Send service metrics to PostgreSQL

5

Access Grafana dashboards

  1. Get Grafana Service URI from Console
  2. Log in with credentials from connection information
  3. View predefined Aiven dashboards
  4. Create custom dashboards
Predefined dashboards are automatically created and maintained by Aiven. Dashboard names start with “Aiven” and are automatically updated. Don’t modify these - create copies or custom dashboards instead.

Log aggregation

Centralize logs from all services in OpenSearch:
1

Create OpenSearch service

Choose plan with enough disk for log retention needs
2

Enable log integrations

3

Configure log retention

In OpenSearch, set up Index Lifecycle Management (ILM):
4

Access OpenSearch Dashboards

Use Service URI to access Dashboards and create visualizations
Log retention is limited by OpenSearch disk space. Monitor disk usage and adjust retention policies or service plan accordingly.

Integration types

Metrics integrations

PostgreSQL + Grafana
  • Service-specific detailed metrics
  • Predefined dashboards automatically created
  • Query performance insights
  • Resource utilization tracking
Available metrics:
  • System: CPU, memory, disk, network
  • Database: Connections, queries, cache hits
  • Kafka: Messages/sec, lag, partition metrics
  • Redis: Commands/sec, key evictions

Log integrations

Aiven OpenSearch
  • Centralized log storage and search
  • OpenSearch Dashboards for visualization
  • Long-term retention (disk-limited)
  • Full-text search capabilities

Data streaming integrations

Data pipelines
  • Stream data between Kafka and other services
  • Source connectors (databases → Kafka)
  • Sink connectors (Kafka → databases/storage)

Database integrations

PostgreSQL/MySQL replicas
  • Create read-only replicas
  • Scale read workloads
  • Cross-region replicas

Managing integrations

List integrations

Update integrations

Delete integrations

Integration use cases

Complete observability stack

Set up comprehensive monitoring and logging:

Kafka streaming architecture

Build a complete streaming data platform:

Multi-region database setup

Set up cross-region read replicas:

Integration billing

Integrations themselves don’t cost extra, but integrated services incur their normal hourly charges.

Cost considerations

  • Metrics integration: Requires PostgreSQL + Grafana services
  • Log integration: Requires OpenSearch service (size depends on log volume)
  • Data streaming: Requires Kafka Connect, Flink, or other streaming services
  • Read replicas: Full cost of replica service

Optimizing costs

1

Share observability services

Use one PostgreSQL + Grafana for all services in a project
2

Right-size OpenSearch

Monitor disk usage and adjust plan based on actual log volume
3

Use log retention policies

Configure ILM to delete old logs automatically
4

Selective metrics

Only integrate metrics for critical production services

Best practices

1

Set up observability early

Deploy metrics and logging integrations from day one
2

Use one metrics stack per project

Share PostgreSQL + Grafana across all services in the project
3

Centralize logs

Send all service logs to the same OpenSearch instance
4

Configure retention policies

Set appropriate log retention in OpenSearch to manage disk usage
5

Monitor integration health

Check that integrations are active and data is flowing
6

Document integrations

Maintain documentation of which services integrate with what
7

Test before production

Verify integrations in development before enabling in production
8

Use cross-region carefully

Be aware of data transfer costs for cross-region integrations

Troubleshooting

Cause: Destination service not ready or network issueSolution:
  1. Check both services are running
  2. Verify services are in same project
  3. For cross-region, check connectivity
  4. Try recreating the integration
Cause: Integration needs time to populate or not configured correctlySolution:
  1. Wait 1-2 minutes for initial data
  2. Verify metrics integration is active
  3. Check PostgreSQL has free disk space
  4. Refresh Grafana dashboard
Cause: Integration issue or OpenSearch disk fullSolution:
  1. Verify log integration is active
  2. Check OpenSearch disk space
  3. Review ILM policies
  4. Check for ingestion errors in OpenSearch
Cause: Dashboard name conflict or modificationSolution:
  1. Don’t modify dashboards starting with “Aiven”
  2. Create copies or custom dashboards instead
  3. Predefined dashboards are auto-maintained
  4. Check for typos in dashboard names
Cause: Network latency or replication lagSolution:
  1. Check replication lag metrics
  2. Verify network connectivity
  3. Reduce write load on primary
  4. Ensure replica has adequate resources

API reference

Next steps

Monitoring & Logs

Learn about monitoring and viewing logs

VPC & Networking

Configure networking for integrations

Security

Secure your service integrations

Billing

Understand integration costs