Apache is an open-source and free web server software. This plugin collects runtime metrics, connections and uptime from your Apache HTTP server.

Setup & Configuration

The Apache plugin is included with the Atatus Infra agent by default, please follow the below section to enable.

  1. Copy the Apache example configuration file.

    copy
    icon/buttons/copy
    cd /etc/atatus-infra-agent/conf.d/apache.d/
    sudo cp apache.yml.template apache.yml
    
  2. Update the file /etc/atatus-infra-agent/conf.d/apache.d/apache.yml with below configurations.

    copy
    icon/buttons/copy
    # Metrics section
    metrics:
        # Apache hosts
      - hosts: ["http://127.0.0.1"]
    
        # Default server-status path
        #status_path: "server-status"
    
        # Username of hosts.  Empty by default
        #username: user
    
        # Password of hosts. Empty by default
        #password: pass
    
  3. Restart the atatus infrastructure agent.

    copy
    icon/buttons/copy
    sudo service atatus-infra-agent restart
    

Metrics

Name Description Type
apache.status.requests_per_sec Requests per second. float
apache.status.cpu.load CPU Load. float
apache.status.workers.idle Number of idle workers. long
apache.status.workers.busy Number of busy workers. long
apache.status.connections.async.writing Async connection writing. long
apache.status.connections.async.keep_alive Async keeped alive connections. long
apache.status.connections.async.closing Async closed connections. long
apache.status.connections.total Total connections. long
apache.status.uptime.server_uptime Server uptime in seconds. long
apache.status.total_kbytes Total number of kilobytes served. long
apache.status.bytes_per_sec Bytes per second. float