---
title: Apache Web Server Metrics
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > OpenTelemetry in Datadog > Integrations > Apache Web Server Metrics
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Apache Web Server Metrics

## Overview{% #overview %}

{% image
   source="https://docs.dd-static.net/images/opentelemetry/collector_exporter/apache_metrics.db7ea9fb7871a15a917bababd06bcd18.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/opentelemetry/collector_exporter/apache_metrics.db7ea9fb7871a15a917bababd06bcd18.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="OpenTelemetry Apache metrics in an Apache dashboard" /%}

The [Apache receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/apachereceiver) collects Apache Web Server metrics.

For more information, see the OpenTelemetry project documentation for the [Apache receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/apachereceiver).

## Setup{% #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`](https://httpd.apache.org/docs/2.4/mod/mod_status.html) 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:

```yaml
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](https://docs.datadoghq.com/opentelemetry/setup/collector_exporter.md) includes it.

For all configuration options, see the [Apache receiver documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/apachereceiver).

## Data collected{% #data-collected %}

| OTEL                       | DESCRIPTION                                                             | FILTER                  |
| -------------------------- | ----------------------------------------------------------------------- | ----------------------- |
| apache.cpu.load            | Current load of the CPU.                                                |
| apache.current_connections | The number of active connections currently attached to the HTTP server. |
| apache.requests            | The number of requests serviced by the HTTP server per second.          |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `waiting`      |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `starting`     |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `sending`      |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `reading`      |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `open`         |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `logging`      |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `keepalive`    |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `idle_cleanup` |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `finishing`    |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `dnslookup`    |
| apache.scoreboard          | The number of workers in each state.                                    | `state`: `closing`      |
| apache.uptime              | The amount of time that the server has been running in seconds.         |
| apache.workers             | The number of workers currently attached to the HTTP server.            | `state`: `busy`         |
| apache.workers             | The 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](https://docs.datadoghq.com/opentelemetry/guide/metrics_mapping.md).

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Setting Up the OpenTelemetry Collector](https://docs.datadoghq.com/opentelemetry/collector_exporter.md)
