You have probably seen a similar service metrics screen to the one below when looking at your Aiven services. These metrics are intended to give you a quick overview and to aid in testing out services. An additional benefit is that these metrics are free and always will be, and you can get them through the Aiven API or CLI. In addition to these core service metrics, you can also visualize more in-depth service-level metrics by using our metrics integration.

And then there are external integrations: Datadog, New Relic, AWS CloudWatch - whatever the metrics management tool, we most likely have an integration available for you.

You can also use the Aiven portfolio and the Aiven platform to handle the metrics of your services. This requires:

  • An Aiven account

  • A running service (or services)

The aim of this article is to help you set up:

  • A metrics storage service (for example M3DB, InfluxDB, or PostgreSQL using TimescaleDB; see our blog post for more information)

  • A Grafana service with ready-made and managed dashboards for the services that you are monitoring

Enabling metrics integrations

  1. Log in to the Aiven web console.

  2. Select the services where you want to enable metrics integration.

  3. Click Metrics.

  4. Click Enable Metrics integration.

  5. Select an existing Aiven for M3DB, Aiven for InfluxDB, or Aiven for PostgreSQL service to use for storing your metrics, then click Enable.
    If you do not have a suitable service available:

    1. Select New service.

    2. Select M3DB, InfluxDB, or PostgreSQL as the new service type.
      In this example, we are using M3DB.

    3. Click Continue.

    4. Enter a name for your service.

    5. Select the cloud provider and region for the new metrics database service.

    6. Select the service plan.

    7. Click Create and enable.

  6. Under Enabled service integrations, click the name of the service that you selected.

  7. On the Overview page, scroll down and click Manage integrations.

  8. Click Use integration on the Dashboard card.

  9. Select an existing Aiven for Grafana service to use as a metrics dashboard, then click Enable.
    If you do not have a suitable service available:

    1. Select New service and click Continue.

    2. Enter a name for your Grafana service.

    3. Select a cloud provider, region, and service plan for your Grafana service, then click Create and enable.

  10. Select Services from the main menu.

  11. Select the service that you are monitoring.

  12. On the Overview page, scroll down to Service Integrations and check that the database service that hosts the metrics is listed as an active integration.

  13. Click the service name listed next to Service Integrations.

  14. On the Overview page of the metrics database service, scroll down to Service Integrations and check that the Grafana service you selected previously is listed as an active integration.

  15. Click the service name listed next to Service Integrations.

  16. On the Overview page of the Grafana service, copy the password for the service.

  17. Click the Service URI to open the Grafana web page.

  18. Enter avnadmin as the username and paste the password that you copied.

  19. Click Log in.

  20. Click Home.

  21. Click Manage.
    This shows you a prebuild dashboard for your Aiven service.

    Tip: Add the dashboard to your favorites for easy access.

  22. Rename the dashboard, configure alerts, and explore the available options.


Did this answer your question?