Apache Receiver
contrib
Maintainers: @colelaven, @ishleenk17
Source: opentelemetry-collector-contrib
Supported Telemetry
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’shttpd.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
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 arens,us(orµs),ms,s,m,h.initial_delay(default =1s): defines how long this receiver waits before starting.
Example Configuration
Metrics
Details about the metrics produced by this receiver can be found in metadata.yamlMetric 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:
- Default (both gates disabled): only the original names are emitted. A warning is logged at startup pointing to this guide.
- Transition (
enableNewFormatMetricsonly): 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. - New only (both gates enabled): only the new names are emitted.
--feature-gates flag, for example:
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] Theapache.cpu.timemetric keeps its name; only itslevelandmodeattribute keys are renamed. The originalapache.workersmetric (busy/idle counts) is replaced by the separateapache.worker.activeandapache.worker.idlemetrics, which have no state attribute.
What to update
Before enablingreceiver.apache.disableOldFormatMetrics, review anything that
references the original names, including:
- Dashboards and visualizations.
- Alerting and recording rules.
- OTTL statements (e.g. in the
transformorfilterprocessors). - Routing and pipeline configuration that matches on metric or attribute names.
Metrics
Attributes
Resource Attributes
Configuration
Example Configuration
Last generated: 2026-08-24