Skip to content

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.

Aerospike cluster metrics collected by Aerospike Prometheus Exporter and scraped by Datadog Agent before being sent to Datadog

Configure Datadog Agent

  1. 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
  2. Create or edit the Datadog integration configuration file:

    conf.d/aerospike_enterprise.d/conf.yaml

    Set openmetrics_endpoint to the Aerospike Prometheus Exporter metrics endpoint. Replace APE_HOST with the hostname or IP address reachable from the Datadog Agent.

    init_config:
    instances:
    - openmetrics_endpoint: http://APE_HOST:9145/metrics

    If 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/metrics

    If your exporter endpoint uses TLS or authentication, add the matching OpenMetrics options from Datadog’s sample aerospike_enterprise.d/conf.yaml.

  3. Restart the Datadog Agent after you save conf.yaml.

  4. 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.count and aerospike.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

  1. From the Datadog Agent host, confirm that the exporter endpoint returns Aerospike metrics.

    Command
    Terminal window
    curl http://APE_HOST:9145/metrics
    Expected output
    # HELP aerospike_...
    # TYPE aerospike_...
    aerospike_...

    If this command cannot connect or does not return Aerospike metrics, Datadog cannot scrape the exporter.

  2. Check the Datadog Agent status and look for aerospike_enterprise in the Checks section.

    Command
    Terminal window
    datadog-agent status
    Expected output excerpt
    Checks
    ======
    aerospike_enterprise
    Instance ID: aerospike_enterprise:...
    ...
  3. 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.count or aerospike.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

  1. From the Datadog Agent host, run curl against the same endpoint configured in openmetrics_endpoint in conf.d/aerospike_enterprise.d/conf.yaml.

    Command
    Terminal window
    curl http://APE_HOST:9145/metrics
    Expected 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/metrics
    curl -u DATADOG_AGENT_USERNAME:DATADOG_AGENT_PASSWORD http://APE_HOST:9145/metrics
    curl --cacert CA_FILE_PATH -u DATADOG_AGENT_USERNAME:DATADOG_AGENT_PASSWORD https://APE_HOST:9145/metrics
  2. If curl times out or returns a connection error, check that Aerospike Prometheus Exporter is running on the exporter host.

    Terminal window
    systemctl status aerospike-prometheus-exporter
  3. If the exporter is running, check that the Agent host can reach the exporter host on port 9145. For example, run curl again with the hostname or IP address used in openmetrics_endpoint, not 127.0.0.1.

The Agent status does not show aerospike_enterprise

  1. 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
  2. Open the Agent configuration directory and check that the integration configuration file exists at conf.d/aerospike_enterprise.d/conf.yaml.

  3. In conf.d/aerospike_enterprise.d/conf.yaml, check that instances contains an openmetrics_endpoint value.

    instances:
    - openmetrics_endpoint: http://APE_HOST:9145/metrics
  4. Restart the Datadog Agent, then run datadog-agent status and look for aerospike_enterprise in the Checks section.

The Agent check runs but metrics do not appear in Datadog

  1. From the Datadog Agent host, run curl against the same URL configured for openmetrics_endpoint in conf.d/aerospike_enterprise.d/conf.yaml. The endpoint should return Aerospike metrics.

  2. In the Datadog Agent main configuration file, datadog.yaml, check that api_key is set and that site matches your Datadog organization, such as datadoghq.com, us3.datadoghq.com, or datadoghq.eu.

  3. From the Agent host, check outbound connectivity to your Datadog site. If your Agent uses a site other than datadoghq.com, replace api.datadoghq.com with the API hostname for that site.

    Command
    Terminal window
    curl -I https://api.datadoghq.com
    Example 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.

  4. Run datadog-agent status and check the aerospike_enterprise check output for collection errors.

The exporter endpoint uses TLS or authentication

  1. In conf.d/aerospike_enterprise.d/conf.yaml, update openmetrics_endpoint to use https:// if the exporter serves metrics over TLS.

    instances:
    - openmetrics_endpoint: https://APE_HOST:9145/metrics
  2. If the exporter uses a private certificate authority, add the certificate path with tls_ca_cert in conf.d/aerospike_enterprise.d/conf.yaml.

    instances:
    - openmetrics_endpoint: https://APE_HOST:9145/metrics
    tls_ca_cert: CA_FILE_PATH
  3. If the exporter requires basic authentication, add username and password in conf.d/aerospike_enterprise.d/conf.yaml.

    instances:
    - openmetrics_endpoint: https://APE_HOST:9145/metrics
    username: DATADOG_AGENT_USERNAME
    password: DATADOG_AGENT_PASSWORD
  4. Restart the Datadog Agent and check datadog-agent status for aerospike_enterprise collection errors.

For additional OpenMetrics options, see Datadog’s sample aerospike_enterprise.d/conf.yaml.

Next steps

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?