For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/opentelemetry/integrations/apache_metrics.md. A documentation index is available at /llms.txt.

Apache Web Server Metrics

Overview

OpenTelemetry Apache metrics in an Apache dashboard

The Apache receiver collects Apache Web Server metrics.

For more information, see the OpenTelemetry project documentation for the Apache receiver.

Setup

This example uses component identifiers from OpenTelemetry Collector Contrib v0.154.0. For other versions or distributions, use the identifiers your distribution supports.

The Apache receiver reads your server’s server-status?auto page. Before you start, enable mod_status on your Apache server. Limit access to the status page, for example to localhost, because it shows details about your server and its requests.

Add the following lines to your Collector configuration, and set endpoint to the address of your status page:

receivers:
  apache:
    endpoint: http://localhost:8080/server-status?auto

Add apache to the receivers list of the metrics pipeline in your configuration. Keep the processors already in that pipeline. The Datadog OTLP metrics intake accepts only delta metrics, and this receiver produces cumulative sums, so the pipeline needs cumulativetodelta. The recommended Collector setup includes it.

For all configuration options, see the Apache receiver documentation.

Data collected

OTELDESCRIPTIONFILTER
apache.cpu.loadCurrent load of the CPU.
apache.current_connectionsThe number of active connections currently attached to the HTTP server.
apache.requestsThe number of requests serviced by the HTTP server per second.
apache.scoreboardThe number of workers in each state.state: waiting
apache.scoreboardThe number of workers in each state.state: starting
apache.scoreboardThe number of workers in each state.state: sending
apache.scoreboardThe number of workers in each state.state: reading
apache.scoreboardThe number of workers in each state.state: open
apache.scoreboardThe number of workers in each state.state: logging
apache.scoreboardThe number of workers in each state.state: keepalive
apache.scoreboardThe number of workers in each state.state: idle_cleanup
apache.scoreboardThe number of workers in each state.state: finishing
apache.scoreboardThe number of workers in each state.state: dnslookup
apache.scoreboardThe number of workers in each state.state: closing
apache.uptimeThe amount of time that the server has been running in seconds.
apache.workersThe number of workers currently attached to the HTTP server.state: busy
apache.workersThe number of workers currently attached to the HTTP server.state: idle

For the full mapping between OpenTelemetry and Datadog metric names, see OpenTelemetry Metrics Mapping.

Further reading

Additional helpful documentation, links, and articles: