Skip to content

graphdat/plugin-apache

Repository files navigation

Boundary Apache HTTP Server Plugin

Collects metrics from a Apache HTTP server instance. See video walkthrough.

Prerequisites

OSLinuxWindowsSmartOSOS X
Supportedvvvv

Boundary Meter Versions V4.0 Or Greater

Boundary Meter Versions Less Than V4.0

Runtimenode.jsPythonJava
Required+

Plugin Setup

  • The Boundary Apache HTTP Server plugin depends on the server-stats module for collecting metrics. The sections below provide the procedures to enable and configure the server-stats module.

Enable the server-status Module

  1. Modify the Apache HTTP Server httpd.conf by adding the following:
    <Location /server-status> SetHandler server-status </Location>

Secure the EndPoint with a User Name and Password

  1. Create as password file to secure the endpoint. The example shown here is using the path /etc/httpd/my_password_file.
    $ sudo htpasswd -c /etc/httpd/my_password_file 
  2. Enable authentication by modifying the <Location/> added previously as shown here :
    <Location /server-status> SetHandler server-status AuthType basic AuthName "Apache status" AuthUserFile /etc/httpd/my_password_file Require valid-user </Location>
  3. Restart Apache HTTP server reload the httpd.conf configuration.
  4. Verify that statistics are being collected by visiting http://yourserver.com/server-status
  5. To also capture the 'requests per second' metric, add ExtendedStatus On outside of your <Location /> block:
    <Location /server-status> SetHandler server-status AuthType basic AuthName "Apache status" AuthUserFile /etc/httpd/my_password_file Require valid-user </Location> ExtendedStatus On

Plugin Configuration Fields

Field NameDescription
Server-Status URLThe URL endpoint of where the Apache HTPP server statistics are hosted.
UsernameIf the URL is password protected, what username should the plugin use to authenticate
PasswordIf the URL is password protected, what password should the plugin use to authenticate
Poll IntervalHow often (in milliseconds) to poll for metrics (default: 1000).
SourceName identifying the specific instance of Apache HTTP server which is displayed in dashboards

Metrics Collected

Tracks the following metrics for apache

Metric NameDescription
Apache RequestsThe number of Apache Accesses
Apache Total Bytesbytes transferred
Apache Bytes per Requestaverage bytes per request
Apache CPU
Apache Busy Workersthe number of busy workers
Apache Idle Workersthe number of idle workers
Apache busy to idle ratioThe ratio of busy workers / (busy + idle workers)

Dashboards

Apache Server

References

None

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7