---
title: Apache HTTP server (HTTPD) metrics
slug: telemetry-pipeline/apache-http-server-httpd-metrics
docTags: 
createdAt: 2025-04-21T00:48:57.057Z
---

## Apache HTTP Server (HTTPD) Metrics Source

The Apache HTTP Server metrics source collects **runtime and performance metrics** from an Apache HTTPD instance by scraping the **mod\_status** endpoint. It enables visibility into request handling, worker utilization, and server health without requiring additional instrumentation.

This source is suitable for both **daemon** and **sidecar** deployment models and is commonly used in on-premise, VM-based, and containerized Apache deployments.

## Prerequisites

### Apache mod\_status

The Apache **mod\_status** module must be enabled and accessible.

Operational requirements:

- mod\_status loaded in Apache configuration&#x20;
- server-status endpoint enabled&#x20;
- Access allowed from the metrics collector&#x20;
- Output format must support the ?auto parameter&#x20;

Without mod\_status, no metrics can be collected.

## Collection Model

- Pull-based metric collection&#x20;
- Periodic scraping of HTTP endpoints&#x20;
- Stateless operation with no local persistence&#x20;
- One scrape cycle produces one batch of metrics&#x20;

Each configured endpoint is scraped independently.

## Endpoint Configuration

### endpoints (required, \[string])

Defines the list of Apache **mod\_status** endpoints to scrape metrics from.

Key points:

- Each entry must point to a valid server-status endpoint&#x20;
- Multiple endpoints can be configured to monitor multiple Apache instances&#x20;
- Endpoints must return metrics in a machine-readable format&#x20;

**Operational note:**
&#x20;Ensure network access and authentication rules allow the collector to reach the endpoint.

## Metric Namespacing

### namespace (optional, string)

Specifies the namespace under which Apache metrics are emitted.

When enabled:

- All metrics are prefixed with the configured namespace&#x20;
- Metric naming collisions are avoided&#x20;
- Downstream routing and filtering becomes easier&#x20;

If empty, namespacing is disabled.

## Proxy Configuration

### proxy (optional, object)

Controls how HTTP requests to Apache endpoints are routed through a proxy.

This is useful in environments where:

- Direct access to Apache servers is restricted&#x20;
- Traffic must traverse controlled egress points&#x20;
- Centralized network policies are enforced&#x20;

proxy.enabled (optional, bool)

Enables or disables proxy support globally for this source.

proxy.http (optional, string)

Proxy endpoint used for HTTP traffic.

Must be a valid URI.

proxy.https (optional, string)

Proxy endpoint used for HTTPS traffic.

Must be a valid URI.

proxy.no\_proxy (optional, \[string])

Defines hosts or networks that should bypass the proxy.

Supported patterns include:

- Exact domain names&#x20;
- Wildcard domains&#x20;
- IP addresses&#x20;
- CIDR ranges&#x20;
- Global wildcard&#x20;

## Scrape Interval

### scrape\_interval\_secs (optional, uint)

Controls how frequently Apache metrics are collected.

Considerations:

- Short intervals increase metric resolution&#x20;
- Longer intervals reduce load on the Apache server&#x20;
- Interval applies to all configured endpoints uniformly&#x20;

## Metrics Scope

The source exposes metrics related to:

- Request throughput&#x20;
- Worker and thread utilization&#x20;
- Connection states&#x20;
- Server uptime and load&#x20;
- Scoreboard status&#x20;

Metrics are derived directly from the Apache server-status output.

## Reliability and Delivery Semantics

- Metrics are delivered with **at-least-once semantics**&#x20;
- Duplicate samples may occur during retries&#x20;
- No acknowledgement tracking at the source level&#x20;
- Downstream systems should handle potential duplication gracefully&#x20;

## Security Considerations

- The server-status endpoint should not be publicly exposed&#x20;
- Access should be restricted by IP or authentication&#x20;
- Proxy settings can be used to enforce controlled access paths&#x20;
- HTTPS endpoints are recommended in production environments&#x20;

## Common Use Cases

- Apache performance monitoring&#x20;
- Capacity and load analysis&#x20;
- SLA and availability tracking&#x20;
- Integration with Prometheus-compatible backends&#x20;
- Sidecar-based observability in containerized Apache setups
