-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37a63d1
commit 1eefafd
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Nginx Plugin | ||
|
||
|
||
Monitors Nginx. Sends to Amon the the following metrics: | ||
|
||
- Connections - reading, writing, waiting | ||
- Requests per second | ||
|
||
## Installing | ||
|
||
The Nginx plugin requires Amon agent version 0.8+. To check your agent version: `$ /etc/init.d/amon-agent status`. | ||
You also need to enable the `HttpStubStatusModule` - http://wiki.nginx.org/HttpStubStatusModule in your Nginx configuration files | ||
|
||
To install the plugin: | ||
|
||
|
||
$ cp /etc/amonagent/plugins/nginx/nginx.conf.example /etc/amonagent/plugins-enabled/nginx.conf | ||
|
||
|
||
## Configuration | ||
|
||
* **status_url** - Your Nginx status url. | ||
|
||
|
||
## Testing | ||
|
||
To test the installation, run the following: | ||
|
||
|
||
$ /etc/init.d/amon-agent plugins | ||
|
||
|
||
If everything works as expected, restart the agent and in a couple of minutes you will see the metrics in Amon |