Monitor Aiven for ClickHouse® metrics with Aiven for Grafana®
Push Aiven for ClickHouse® metrics to Aiven for Metrics or Aiven for PostgreSQL®, and integrate with Aiven for Grafana® to monitor your metrics on Grafana dashboards.
For more information on the metrics, see Aiven for ClickHouse® metrics exposed in Aiven for Grafana®.
Metrics storage options
Aiven provides two options for storing your Aiven for ClickHouse metrics:
-
Aiven for Metrics: A managed time-series database service built on Thanos, optimized for long-term metrics storage and querying
No external Thanos accessWhile Aiven for Metrics uses the Thanos architecture internally, you cannot connect your Aiven-managed services to any external (non-Aiven) Thanos endpoint. Connect to Aiven for Metrics instead.
-
Aiven for PostgreSQL: A relational database that can store metrics data using TimescaleDB extension
Push ClickHouse® metrics to Metrics or PostgreSQL
To collect metrics about your Aiven for ClickHouse service, configure a metrics integration and nominate somewhere to store the collected metrics.
- On the service Overview page for your Aiven for ClickHouse service, go to Integrations, and click Go to Integrations > Store Metrics.
- In the Metrics integration window:
- Choose either a new or existing Aiven for Metrics or Aiven for PostgreSQL service.
- For Aiven for Metrics: This provides a Thanos-based time-series database optimized for metrics storage and long-term retention
- For Aiven for PostgreSQL: This stores metrics in a relational format, suitable if you prefer SQL-based querying
- If you choose to use a new service, follow instructions on how to create a service.
- If you're already using Aiven for Metrics or Aiven for PostgreSQL, you can submit your Aiven for ClickHouse metrics to the existing service.
- Click Enable.
- Choose either a new or existing Aiven for Metrics or Aiven for PostgreSQL service.
Provision and configure Grafana
- In the Aiven Console, go to your metrics storage service (Aiven for Metrics or Aiven for PostgreSQL) page.
- On the service Overview page, go to Integrations, and click Go to Integrations > Grafana Metrics Dashboard to make your metrics available in Aiven for Grafana.
- In the Dashboard integration window:
- Choose either a new or existing Aiven for Grafana service.
- If you choose to use a new service, follow instructions on how to create a service.
- If you're already using Grafana on Aiven, you can integrate your Aiven for Metrics or Aiven for PostgreSQL as an additional data source for that existing Grafana.
- Click Enable.
- Choose either a new or existing Aiven for Grafana service.
Now your Aiven for Grafana service is connected to your metrics storage service as a data source. After a few minutes, your metrics are available for visualization on a Grafana dashboard.
Open ClickHouse metrics dashboard
- In the Aiven Console, go to the Overview page of the integrated Aiven for Grafana service, and click the Service URI link.
- Log in to Grafana using the username and password available on the Aiven for Grafana service Overview page > Connection information.
- In Grafana, go to Dashboards and open your Aiven for ClickHouse metrics dashboard.
- Browse prebuilt views or create your own monitoring views.