forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Nginx stub status to metricbeat (elastic#1642)
* Add Nginx module with stub status metric set * Return error if Nginx stub status cannot be parsed * Add Nginx stub status integration test * Add fields for Nginx and Nginx stub metricset (#2)
- Loading branch information
Showing
24 changed files
with
685 additions
and
4 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
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
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
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,40 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-module-nginx]] | ||
== Nginx Module | ||
|
||
This module periodically fetches metrics from https://nginx.org/[Nginx] servers. | ||
|
||
|
||
|
||
=== Example Configuration | ||
|
||
The Nginx module supports the standard configuration options which can be found | ||
here (add link). Below is an example of a configuration option: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
#----------------------------- Nginx Module ---------------------------------- | ||
- module: nginx | ||
metricsets: ["stubstatus"] | ||
enabled: true | ||
period: 1s | ||
# Nginx hosts | ||
hosts: ["http://127.0.0.1/"] | ||
# Path to server status. Default server-status | ||
#server_status_path: "server-status" | ||
---- | ||
|
||
=== MetricSets | ||
|
||
The following MetricSets are available: | ||
|
||
* <<metricbeat-metricset-nginx-stubstatus,stubstatus>> | ||
|
||
include::nginx/stubstatus.asciidoc[] | ||
|
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,23 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-nginx-stubstatus]] | ||
=== Nginx StubStatus MetricSet | ||
|
||
The Nginx StubStatus MetricSet collects data from the Nginx | ||
http://nginx.org/en/docs/http/ngx_http_stub_status_module.html[ngx_http_stub_status] module. It | ||
scrapes the server status data from the web page generated by ngx_http_stub_status. | ||
|
||
|
||
|
||
==== Fields | ||
|
||
A description of each field in the MetricSet can be found in the | ||
<<exported-fields-nginx,exported fields>> section | ||
|
||
Below is an example document generated by this metricset. | ||
|
||
[source,json] | ||
---- | ||
---- |
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
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
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
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
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
Oops, something went wrong.