Monitor Aerospike with Datadog
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page shows how to configure Datadog to collect Aerospike Database Enterprise Edition metrics from Aerospike Prometheus Exporter. When you finish, Aerospike metrics are available in Datadog through either the Datadog Agent integration or a direct OpenTelemetry (OTel) HTTP connection.
Use Datadog monitoring when your operations, SRE, or DevOps team already uses Datadog for infrastructure and application monitoring. Datadog can then collect Aerospike metrics for cluster availability, namespaces, nodes, sets, secondary indexes, XDR, and latency metrics.
Choose a Datadog path
You can connect Aerospike Database to Datadog through the Datadog Agent integration or directly with OTel HTTP.
Datadog Agent
Datadog Agent runs on the systems you monitor and collects metrics locally. The Aerospike Enterprise Agent integration uses the OpenMetrics endpoint exposed by Aerospike Prometheus Exporter, then sends the collected metrics to Datadog with the rest of your infrastructure telemetry. Use this path when you already run Datadog Agent or want Agent status, host metadata, Agent-level tagging, and standard integration troubleshooting.
Direct OTel HTTP
If you prefer to use direct OTel HTTP, Aerospike Prometheus Exporter sends OTel metrics directly to the Datadog OTLP metrics intake endpoint, so no Datadog Agent or OTel Collector is required between the exporter and Datadog.
Use this path when you cannot run Datadog Agent near the exporter, prefer outbound HTTPS from the exporter, or only need to send Aerospike metrics. This requires the exporter to store a Datadog API key and have outbound access to Datadog. Datadog’s OTLP metrics intake endpoint requires delta metrics, and host metadata sent to this endpoint does not populate the Datadog Infrastructure Host List. Before relying on direct OTel HTTP in production, verify that your expected Aerospike metrics, tags, monitors, and dashboards behave as expected.
Connect and configure Datadog integration
Datadog Agent prerequisites
You need Aerospike Database Enterprise Edition, Aerospike Prometheus Exporter, a Datadog account, and Datadog Agent installed on the host or container that can reach the exporter endpoint.
The Datadog Agent must have a valid Datadog API key and site value in datadog.yaml for your Datadog site.
The Datadog account must have permission to install integrations.
If your organization uses the us2.ddog-gov.com Datadog site, confirm that the Aerospike Enterprise integration is available in your organization or request enablement through Datadog support.
For more information, see Datadog’s Aerospike Enterprise integration documentation.
If Datadog Agent and Aerospike Prometheus Exporter run on the same host, the default exporter endpoint is http://127.0.0.1:9145/metrics. If they run on different hosts, use a network-reachable hostname or IP address instead.
Configure Datadog Agent
-
Install the Aerospike Enterprise Agent integration on each Datadog Agent that will collect Aerospike metrics.
Terminal window datadog-agent integration install -t datadog-aerospike_enterprise==1.0.0 -
Create or edit the Datadog integration configuration file:
conf.d/aerospike_enterprise.d/conf.yamlSet
openmetrics_endpointto the Aerospike Prometheus Exporter metrics endpoint. ReplaceAPE_HOSTwith the hostname or IP address reachable from the Datadog Agent.init_config:instances:- openmetrics_endpoint: http://APE_HOST:9145/metricsIf the Datadog Agent and exporter run on the same host, use the loopback endpoint instead:
init_config:instances:- openmetrics_endpoint: http://127.0.0.1:9145/metricsIf your exporter endpoint uses TLS or authentication, add the matching OpenMetrics options from Datadog’s sample
aerospike_enterprise.d/conf.yaml. -
Restart the Datadog Agent after you save
conf.yaml. -
In Datadog, open the Integrations catalog and install Aerospike Enterprise.
This installs the Datadog-side assets for the integration, including the integration tile and bundled dashboards. You can also query Aerospike metrics directly in Datadog by metric name, such as
aerospike.server.namespace.client_read_success.countandaerospike.server.latencies.read_ms_bucket.
After the metrics reach Datadog, you can explore them in the Datadog UI in Metrics Explorer, create monitors, and use the Aerospike Enterprise dashboards.
Verify Datadog Agent
-
From the Datadog Agent host, confirm that the exporter endpoint returns Aerospike metrics.
CommandTerminal window curl http://APE_HOST:9145/metricsExpected output # HELP aerospike_...# TYPE aerospike_...aerospike_...If this command cannot connect or does not return Aerospike metrics, Datadog cannot scrape the exporter.
-
Check the Datadog Agent status and look for
aerospike_enterprisein the Checks section.CommandTerminal window datadog-agent statusExpected output excerpt Checks======aerospike_enterpriseInstance ID: aerospike_enterprise:...... -
In Datadog, open Metrics Explorer and search for metrics with the
aerospike.server.prefix.Confirm that Datadog shows Aerospike metrics such as
aerospike.server.namespace.client_read_success.countoraerospike.server.latencies.read_ms_bucket. Then open the Aerospike Enterprise dashboards and confirm that cluster and namespace widgets are receiving data.
Troubleshoot Datadog Agent
These steps focus on the Datadog configuration that affects Aerospike metric collection. For Datadog Agent installation, account, or dashboard issues that are not specific to Aerospike metrics, see Datadog’s troubleshooting documentation or support.
The Agent cannot reach the exporter endpoint
-
From the Datadog Agent host, run
curlagainst the same endpoint configured inopenmetrics_endpointinconf.d/aerospike_enterprise.d/conf.yaml.CommandTerminal window curl http://APE_HOST:9145/metricsExpected output # HELP aerospike_...# TYPE aerospike_...aerospike_...If the exporter endpoint uses TLS or basic authentication, use the matching options for that endpoint:
Terminal window curl --cacert CA_FILE_PATH https://APE_HOST:9145/metricscurl -u DATADOG_AGENT_USERNAME:DATADOG_AGENT_PASSWORD http://APE_HOST:9145/metricscurl --cacert CA_FILE_PATH -u DATADOG_AGENT_USERNAME:DATADOG_AGENT_PASSWORD https://APE_HOST:9145/metrics -
If
curltimes out or returns a connection error, check that Aerospike Prometheus Exporter is running on the exporter host.Terminal window systemctl status aerospike-prometheus-exporter -
If the exporter is running, check that the Agent host can reach the exporter host on port
9145. For example, runcurlagain with the hostname or IP address used inopenmetrics_endpoint, not127.0.0.1.
The Agent status does not show aerospike_enterprise
-
On the Datadog Agent host, run the integration install command again and check for install errors.
Terminal window datadog-agent integration install -t datadog-aerospike_enterprise==1.0.0 -
Open the Agent configuration directory and check that the integration configuration file exists at
conf.d/aerospike_enterprise.d/conf.yaml. -
In
conf.d/aerospike_enterprise.d/conf.yaml, check thatinstancescontains anopenmetrics_endpointvalue.instances:- openmetrics_endpoint: http://APE_HOST:9145/metrics -
Restart the Datadog Agent, then run
datadog-agent statusand look foraerospike_enterprisein the Checks section.
The Agent check runs but metrics do not appear in Datadog
-
From the Datadog Agent host, run
curlagainst the same URL configured foropenmetrics_endpointinconf.d/aerospike_enterprise.d/conf.yaml. The endpoint should return Aerospike metrics. -
In the Datadog Agent main configuration file,
datadog.yaml, check thatapi_keyis set and thatsitematches your Datadog organization, such asdatadoghq.com,us3.datadoghq.com, ordatadoghq.eu. -
From the Agent host, check outbound connectivity to your Datadog site. If your Agent uses a site other than
datadoghq.com, replaceapi.datadoghq.comwith the API hostname for that site.CommandTerminal window curl -I https://api.datadoghq.comExample output HTTP/...The HTTP status can vary because this command does not include an API request. A response from Datadog confirms network connectivity. A timeout, DNS failure, or connection refusal means the Agent host cannot reach Datadog.
-
Run
datadog-agent statusand check theaerospike_enterprisecheck output for collection errors.
The exporter endpoint uses TLS or authentication
-
In
conf.d/aerospike_enterprise.d/conf.yaml, updateopenmetrics_endpointto usehttps://if the exporter serves metrics over TLS.instances:- openmetrics_endpoint: https://APE_HOST:9145/metrics -
If the exporter uses a private certificate authority, add the certificate path with
tls_ca_certinconf.d/aerospike_enterprise.d/conf.yaml.instances:- openmetrics_endpoint: https://APE_HOST:9145/metricstls_ca_cert: CA_FILE_PATH -
If the exporter requires basic authentication, add
usernameandpasswordinconf.d/aerospike_enterprise.d/conf.yaml.instances:- openmetrics_endpoint: https://APE_HOST:9145/metricsusername: DATADOG_AGENT_USERNAMEpassword: DATADOG_AGENT_PASSWORD -
Restart the Datadog Agent and check
datadog-agent statusforaerospike_enterprisecollection errors.
For additional OpenMetrics options, see Datadog’s sample aerospike_enterprise.d/conf.yaml.
Direct OTel HTTP prerequisites
You need Aerospike Database Enterprise Edition, Aerospike Prometheus Exporter 1.31.0 or later, a Datadog account, and a Datadog API key for the target Datadog site. The exporter must be able to make outbound HTTPS connections to the Datadog OTLP metrics intake endpoint.
The exporter sends metrics to Datadog directly, so Datadog Agent does not need to reach the exporter endpoint.
Configure direct OTel HTTP
-
Create or edit the Aerospike Prometheus Exporter configuration file:
/etc/aerospike-prometheus-exporter/ape.toml -
In the
[Agent]and[Agent.OpenTelemetry]sections, enable OTel and configure the Datadog OTLP metrics intake endpoint. ReplaceDATADOG_API_KEYwith your Datadog API key. The API key andhttp_endpointmust belong to the same Datadog site; for non-US1 sites, replace the endpoint with that site’s OTLP metrics endpoint from Datadog’s OTLP metrics intake documentation.[Agent]enable_open_telemetry = true[Agent.OpenTelemetry]service_name = "aerospike-server-metrics-service"http_endpoint = "https://otlp.datadoghq.com/v1/metrics"headers = {"dd-api-key"="DATADOG_API_KEY"}counter_temporality = "delta"metric_name_prefix = "aerospike.server"metric_context_separator = "period"The Datadog OTLP metrics intake endpoint accepts delta metrics. Aerospike Prometheus Exporter uses
deltaas the default counter temporality, but settingcounter_temporalityexplicitly makes the Datadog requirement visible in the exporter configuration. -
Restart Aerospike Prometheus Exporter after you save
ape.toml. Use the restart command for your operating system or container platform.
After the exporter sends metrics to Datadog, you can explore them in the Datadog UI in Metrics Explorer and create monitors. Verify the Aerospike Enterprise dashboards before relying on them with direct OTel HTTP because this path does not use the Datadog Agent integration check.
Verify direct OTel HTTP
-
Check the Aerospike Prometheus Exporter logs after restart.
Confirm that the exporter starts without OTel configuration errors and does not report Datadog export failures. If the exporter logs HTTP status errors from Datadog, verify the OTLP endpoint, API key, and outbound network access.
-
In Datadog, open Metrics Explorer and search for metrics with the
aerospike.server.prefix.Confirm that Datadog shows Aerospike metrics such as
aerospike.server.namespace.client_read_success.countoraerospike.server.latencies.read_ms_bucket. -
Open the Datadog dashboards or monitors that you expect to use with Aerospike metrics.
Confirm that the widgets receive data and that the tags you use for filtering and grouping are present. Host metadata from direct OTLP metrics does not populate the Datadog Infrastructure Host List.
Troubleshoot direct OTel HTTP
These steps focus on the Aerospike Prometheus Exporter settings and network checks required to send Aerospike metrics to Datadog. For Datadog account, API key management, or monitor behavior that is not specific to Aerospike metrics, see Datadog’s troubleshooting documentation or support.
Metrics do not appear in Datadog
-
In Datadog, open Organization Settings > API Keys and check that the key used in
ape.tomlexists and is active. -
In
ape.toml, check thathttp_endpointuses the Datadog site for your organization, such ashttps://otlp.datadoghq.com/v1/metricsfor the US1 site.http_endpoint = "https://otlp.datadoghq.com/v1/metrics" -
If your organization uses a different Datadog site, replace
http_endpointinape.tomlwith that site’s OTLP metrics intake endpoint. For example, usehttps://otlp.datadoghq.eu/v1/metricsfor the EU1 site. -
From the exporter host, check outbound HTTPS access to the OTLP metrics endpoint. If your organization uses a Datadog site other than US1, replace the URL with the value configured in
http_endpointinape.toml.CommandTerminal window curl -I https://otlp.datadoghq.com/v1/metricsExpected output HTTP/2 405The HTTP status can vary because this command does not send an OTLP metrics payload. A response from Datadog confirms network connectivity. A timeout, DNS failure, or connection refusal means the exporter host cannot reach the OTLP endpoint.
-
Check the exporter logs for startup errors, OTel configuration errors, and HTTP status responses from Datadog.
Datadog rejects metrics or datapoints are missing
-
In
ape.toml, check that the exporter sends delta metrics.counter_temporality = "delta"Datadog rejects cumulative metrics sent to the OTLP metrics intake endpoint. After you change
counter_temporality, restart Aerospike Prometheus Exporter and check the exporter logs for Datadog export errors. -
In
ape.toml, check that the metric name prefix matches your Datadog queries, monitors, and dashboards.metric_name_prefix = "aerospike.server" -
In Datadog Metrics Explorer, search for the configured prefix. If you change
metric_name_prefix, update any dashboards and monitors that query the previous metric names. -
Open a metric in Metrics Explorer and review the available tags. If a monitor or dashboard filters by a tag that is not present on the metric, update the filter or configure the exporter to send the tag in
ape.toml.
Datadog returns 403 Forbidden
-
In Datadog, open Organization Settings > API Keys and check that the API key used in
ape.tomlis active. -
Compare the Datadog site where you created the API key with the hostname in
http_endpointinape.toml. For example, an API key created in the US1 site must usehttps://otlp.datadoghq.com/v1/metrics. -
Check the exporter logs after restart. If
403 Forbiddencontinues, create a new API key for the target Datadog site and replace thedd-api-keyheader value inape.toml.
Datadog returns 413 Request Entity Too Large
-
Check whether the exporter logs show payloads that exceed the Datadog OTLP metrics intake limit. Datadog returns
413 Request Entity Too Largewhen an OTLP request payload is larger than 500 KB uncompressed or 5 MB compressed after decompression. -
Aerospike Prometheus Exporter does not expose an OTLP batch-size setting in
ape.toml. To reduce the payload size, reduce the number of exported metrics with Aerospike Prometheus Exporter allowlist or blocklist settings. -
In
ape.toml, remove labels that you do not use in Datadog queries, monitors, or dashboards from the[Agent]labelssetting. -
Restart Aerospike Prometheus Exporter and check the exporter logs for another
413 Request Entity Too Largeresponse.
Datadog shows missing or lower-than-expected datapoints
-
In Metrics Explorer, open the affected metric and compare the tags on datapoints that arrive at the same time.
-
If multiple datapoints for the same metric share the same timestamp and tag set, add distinguishing labels in the
[Agent]labelssetting inape.toml, such as a cluster, environment, or exporter identifier. -
Recheck the metric in Metrics Explorer after the next exporter push interval. Datadog keeps only the last datapoint for duplicate timestamp-plus-dimensions combinations.