Aiven for OpenSearch® metrics sent to Datadog
Send Aiven for OpenSearch® metrics to Datadog, and choose which metric categories the integration collects.
Prerequisites
- A running Aiven for OpenSearch® service on a paid plan. Service integrations, including Datadog, aren't available on free tier services.
- A Datadog account
- A Datadog API key
- A Datadog Metrics integration enabled for your service
Metrics sent to Datadog
When you enable the Datadog Metrics integration for your Aiven for OpenSearch service, Aiven runs Datadog's Elasticsearch integration check against your service. The check always collects node-level and cluster health metrics.
Four additional metric categories are off by default. You enable each one independently
through the opensearch configuration on the Datadog integration.
| Category | Configuration parameter | What it collects |
|---|---|---|
| Cluster monitoring | cluster_stats_enabled | Cluster-wide disk usage metrics |
| Index monitoring | index_stats_enabled | Per-index metrics, such as document counts and store size |
| Pending task monitoring | pending_task_stats_enabled | Metrics for tasks waiting in the cluster task queue |
| Primary shard monitoring | pshard_stats_enabled | Primary shard and index count metrics |
For the full list of metrics in each category, see Metrics in the Datadog Elasticsearch integration documentation.
Enable a metric category
Enable metric categories through the Datadog integration for your Aiven for OpenSearch service.
-
Find the ID of the Datadog Metrics integration for your service by running the avn service integration-list command:
avn service integration-list --project PROJECT_NAME SERVICE_NAMEUse the
service_integration_idvalue from the output asINTEGRATION_IDin the following commands. -
Set the categories to collect to
true. This example enables all four categories:avn service integration-update --project PROJECT_NAME \--user-config-json '{"opensearch": {"cluster_stats_enabled": true,"index_stats_enabled": true,"pending_task_stats_enabled": true,"pshard_stats_enabled": true}}' \INTEGRATION_IDInclude only the categories to change. Setting one category doesn't affect the others.
-
Check that the configuration is set correctly:
avn service integration-list SERVICE_NAME \--project PROJECT_NAME \--json | jq '.[] | select(.integration_type=="datadog").user_config'Expect output similar to the following:
{"opensearch": {"cluster_stats_enabled": true,"index_stats_enabled": true,"pending_task_stats_enabled": true,"pshard_stats_enabled": true}} -
Find the collected metrics in the Datadog Metrics Explorer under the
elasticsearch.prefix.
Related pages