Agent Check: Apache Web Server
The Apache check tracks requests per second, bytes served, number of worker threads, service uptime, and more.
The Apache check is packaged with the Agent, so simply install the Agent on your Apache servers.
mod_status on your Apache servers and enable
Create a file
apache.yaml in the Agent's
init_config: instances: - apache_status_url: http://example.com/server-status?auto # apache_user: example_user # if apache_status_url needs HTTP basic auth # apache_password: example_password # disable_ssl_validation: true # if you need to disable SSL cert validation, i.e. for self-signed certs
Restart the Agent to start sending Apache metrics to Datadog.
Run the Agent's
info subcommand and look for
apache under the Checks section:
Checks ====== [...] apache ------- - instance #0 [OK] - Collected 26 metrics, 0 events & 1 service check [...]
The Apache check is compatible with all major platforms.
See metadata.csv for a list of metrics provided by this check.
The Apache check does not include any event at this time.
Returns CRITICAL if the Agent cannot connect to the configured
apache_status_url, otherwise OK.
To get a better idea of how (or why) to integrate your Apache web server with Datadog, check out our series of blog posts.