Skip to main content

Apache Receiver

Status Available in: contrib Maintainers: @colelaven, @ishleenk17 Source: opentelemetry-collector-contrib

Supported Telemetry

Metrics

Overview

Prerequisites

This receiver supports Apache Web Server version 2.4.13+.

mod_status module

In order to receive server statistics, you must configure the server’s httpd.conf file to enable status support.

Configuration

The following settings are required:
  • endpoint (default: http://localhost:8080/server-status?auto): The URL of the httpd status endpoint
The following settings are optional:
  • collection_interval (default = 10s): This receiver collects metrics on an interval. This value must be a string readable by Golang’s time.ParseDuration. Valid time units are ns, us (or µs), ms, s, m, h.
  • initial_delay (default = 1s): defines how long this receiver waits before starting.

Example Configuration

The full list of settings exposed for this receiver are documented in config.go with detailed sample configurations in testdata/config.yaml.

Metrics

Details about the metrics produced by this receiver can be found in metadata.yaml

Metric and Attribute Name Migration

The receiver’s metric and attribute names are being migrated to a new, more consistent naming scheme (tracked in #47327). Because this component is in beta, the change is being rolled out gradually, behind feature gates, so that existing dashboards, alerts, OTTL statements and routing rules keep working while you migrate.

Rollout

Two feature gates control the migration: This gives three phases you can move through at your own pace:
  1. Default (both gates disabled): only the original names are emitted. A warning is logged at startup pointing to this guide.
  2. Transition (enableNewFormatMetrics only): both the original and the new names are emitted at the same time, so you can update your dashboards, alerts, OTTL statements and routing to the new names without gaps.
  3. New only (both gates enabled): only the new names are emitted.
Enable a gate with the --feature-gates flag, for example:
The gates start at alpha (disabled by default). Following the collector’s stability guidelines, the new names will later become the default (beta), and eventually the old names and gates will be removed (stable).

What changed

Renamed metrics: Renamed attributes:
[!NOTE] The apache.cpu.time metric keeps its name; only its level and mode attribute keys are renamed. The original apache.workers metric (busy/idle counts) is replaced by the separate apache.worker.active and apache.worker.idle metrics, which have no state attribute.

What to update

Before enabling receiver.apache.disableOldFormatMetrics, review anything that references the original names, including:
  • Dashboards and visualizations.
  • Alerting and recording rules.
  • OTTL statements (e.g. in the transform or filter processors).
  • Routing and pipeline configuration that matches on metric or attribute names.

Metrics

Attributes

Resource Attributes

Configuration

Example Configuration


Last generated: 2026-08-24