Apache monitoring integration
Our Apache integration reports data from your Apache web server to the New Relic platform. You can view dashboards of your Apache metric data, create alert policies, and create your own custom queries and charts.
To get the most out of this page, select the installation method that fits your environment. You need a New Relic account before starting the installation process.
Sugerencia
Use guided install to quickly see your data in the UI
The guided install is a single CLI command you can run to monitor your instance. It's a good option for small organizations, or for anyone who wants to test out New Relic.
For a more permanent and scalable solution, we recommend the standard manual install of the agent: keep reading for how to do that.
Apache configuration options
The Apache integration collects both metrics and inventory information. This table provides a description for each config setting and whether it applies to metrics, inventory, or both.
Setting | Description | Default | Applies to |
---|---|---|---|
| The URL set up to provide the metrics using the status module. |
| Metrics, inventory |
Enable multi-tenancy monitoring. |
| Metrics, inventory | |
| Set location of the Apache binary file. | [None] | Inventory |
| Alternative certificate authority bundle file. | [None] | Metrics |
| Alternative certificate authority bundle directory. | [None] | Metrics |
| Set to |
| Metrics |
| Set to |
| |
| Set to |
|
Example configurations
Here are some example YAML configurations:
Labels
You can further decorate your metrics using labels. Labels allow you to add attributes (key/value pairs) to your metrics, which you can then use to query, filter, or group your metrics.
Our default sample config file includes examples of labels but, because they're not mandatory, you can remove, modify, or add new ones of your choice. The following example adds the attribute 'production:load_balancer' to reported metrics.
labels: env: production role: load_balancer
Metric data
The Apache integration collects the following metric data attributes. Each metric name is prefixed with a category indicator and a period, such as net.
or server.
.
Name | Description |
---|---|
| Rate of the number of bytes served, in bytes per second. |
| Rate of the number of client requests, in requests per second. |
| Current number of busy workers. |
| Current number of idle workers. |
| Current number of workers closing TCP connection after serving the response. |
| Current number of workers performing a DNS lookup. |
| Current number of workers gracefully finishing. |
| Current number of idle workers ready for cleanup. |
| Current number of workers maintaining a keep-alive connection. |
| Current number of workers that are logging. |
| Current number of workers reading requests (headers or body). |
| Current number of workers that are starting up. |
| Total number of workers available. Workers that are not needed to process requests may not be started. |
| Current number of workers that are writing. |
Inventory data
Inventory data captures the version numbers from running Apache and from all loaded Apache modules. Those version numbers are added under the config/apache
namespace. For more about inventory data, see Understand data.
System metadata
Besides the standard attributes collected by the infrastructure agent, the integration collects inventory data associated with the ApacheSample
event type:
Name | Description |
---|---|
| The version of the Apache server. Example: |