MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to install & configure Datadog Integration with Apache HTTPD?

The Apache check tracks requests per second, bytes served, number of worker threads, service uptime, and more.

The following metrics will be tracked by this integration:

NameUnitsDescription
apache.conns_async_closingconnectionsThe number of asynchronous closing connections.
apache.conns_async_keep_aliveconnectionsThe number of asynchronous keep alive connections.
apache.conns_async_writingconnectionsThe number of asynchronous writes connections.
apache.conns_totalconnectionsThe total number of connections performed.
apache.net.bytesbytesThe total number of bytes served.
apache.net.bytes_per_sbytes/secondThe number of bytes served per second.
apache.net.hitsrequestsThe total number of requests performed.
apache.net.request_per_srequests/secondThe number of requests performed per second.
apache.performance.busy_workersthreadsThe number of workers serving requests.
apache.performance.cpu_loadpercentThe percent of CPU used.
apache.performance.idle_workersthreadsThe number of idle workers.
apache.performance.uptimesecondsThe amount of time the server has been running.

Step 1 – Install Datadog Agent in Centos OR Ubuntu OR Windows

Step 2 – Install Apache HTTPD server in Ubuntu OR Centos/Redhat OR Windows

Step 3 – Click on the Integrations using Left bar Navigations as shown below

Datadog left navigation with the Integrations menu circled and Integrations submenu selected
Datadog Integrations page searched for apache, with the Apache Integration tile marked Available
Datadog Apache integration Configuration tab with installation steps for the Agent and mod_status

Step 4 – Enable mod_status & ExtendedStatus in Apache

Step 5 – Enable Datadog Apache Integration configuration to start collecting your Apache metrics.

$ cd /etc/datadog-agent/conf.d/apache.d/
$ sudo cp conf.yaml.example conf.yaml
$ sudo vi conf.yaml (CHECK IMAGE BELOW)
$ sudo service datadog-agent restart [UBUNTU]
$ sudo systemctl restart datadog-agent [Centos and Ubuntu]

$ watch curl http://65.1.107.190/ [ GENERATE FAKE LOAD ON APACHE SERVER ] 
Code language: JavaScript (javascript)
Apache conf.yaml for the Datadog Agent with apache_status_url set to the server-status?auto URL

Step 6 – How to make sure if Datadog Agent is monitoring Apache

$ datadog-agent configcheck | grep apache -A 5 -B 5

=== apache check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/apache.d/conf.yaml
Config for instance ID: apache:9ad92079e09f96b4
apache_status_url: http://localhost/server-status?auto
disable_generic_tags: true
~

$ datadog-agent status | grep apache -B 5 -A 15
=========

  Running Checks
  ==============

    apache (4.2.2)
    --------------
      Instance ID: apache:9ad92079e09f96b4 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/apache.d/conf.yaml
      Total Runs: 17
      Metric Samples: Last Run: 27, Total: 459
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 1, Total: 17
      Average Execution Time : 7ms
      Last Execution Date : 2023-09-07 03:47:33 UTC (1694058453000)
      Last Successful Execution Date : 2023-09-07 03:47:33 UTC (1694058453000)
      metadata:
        version.major: 2
        version.minor: 4
        version.patch: 41
        version.raw: 2.4.41
        version.scheme: semver

Code language: JavaScript (javascript)
Datadog-agent configcheck and status output showing the apache check running with status OK

Step 7 – Click on “Install Integration” as show in image below; [ Obselete in Current version of Datadog ]

Datadog Apache integration settings with the Install Integration button circled under Validation

Step 7 – Create a fake Traffic on Apache


$ while true; do curl -s -o /dev/null http://localhost & done
Code language: JavaScript (javascript)

Step 7 – Verify the Apache Metrix on Datadog Console

Datadog Metrics Explorer listing apache metrics such as apache.net.hits and apache.performance.cpu_load

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Datadog Log: Setup Apache Log Analsys

Step 1 – Setup a Apache and start it Step 2 – Enable Log Monitoring in Datadog agent Prerequisite Step 3 – Modify conf.yaml of apache with…

Read More

Datadog Tutorials: How to Monitor Apache using Datadog in Windows

Step 1 – Download Xampp from this URL for windows. This would install Apache and mysql. https://www.apachefriends.org/download.html Step 2 – Run a installer Step 3 – Start…

Read More

Apache: Comprehensive list of Apache HTTP Server configuration directives

This page lists the Apache HTTP Server 2.4 configuration directives you will see most often in httpd.conf, virtual host files and SSL configs, grouped by function. Below…

Read More

Datadog Tutorials: Tag Specifications

In a Datadog Agent log collection config, the tags field adds key:value tags to every log line the Agent collects from a source. You can then filter,…

Read More

Datadog Demo: Introduction Video

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More

How to Install Datadog CLI on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install Datadog CLI on Mac, Windows & Linux – Complete 2026 Tutorial Meta Description: Learn how to install Datadog Pup CLI and Datadog…

Read More