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 STAN metricbeat module (elastic#1)
- Loading branch information
Showing
38 changed files
with
7,075 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
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,62 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-module-stan]] | ||
== Stan module | ||
|
||
beta[] | ||
|
||
This is the Nats module. The Nats module uses https://nats.io/documentation/managing_the_server/monitoring/[Nats monitoring server APIs] to collect metrics. | ||
|
||
The default metricsets are `stats`, `connections`, `routes` and `subscriptions`. `streaming` was added by Endgame engineers | ||
|
||
[float] | ||
=== Compatibility | ||
|
||
The Nats module is tested with Nats 1.3.0. | ||
|
||
|
||
[float] | ||
=== Dashboard | ||
|
||
The Nats module comes with a predefined dashboard. For example: | ||
|
||
image::./images/metricbeat_nats_dashboard.png[] | ||
|
||
|
||
[float] | ||
=== Example configuration | ||
|
||
The Stan module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: stan | ||
metricsets: ["stats", "channels", "subscriptions"] | ||
period: 60s | ||
hosts: ["localhost:8222"] | ||
#stats.metrics_path: "/streaming/serverz" | ||
#channels.metrics_path: "/streaming/channelsz" | ||
#subscriptions: "/streaming/channelsz" # we retrieve streaming subscriptions with a detailed query param to the channelsz endpoint | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-stan-channels,channels>> | ||
|
||
* <<metricbeat-metricset-stan-stats,stats>> | ||
|
||
* <<metricbeat-metricset-stan-subscriptions,subscriptions>> | ||
|
||
include::stan/channels.asciidoc[] | ||
|
||
include::stan/stats.asciidoc[] | ||
|
||
include::stan/subscriptions.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-stan-channels]] | ||
=== Stan channels metricset | ||
|
||
beta[] | ||
|
||
include::../../../module/stan/channels/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-stan,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/stan/channels/_meta/data.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
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-stan-stats]] | ||
=== Stan stats metricset | ||
|
||
beta[] | ||
|
||
include::../../../module/stan/stats/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-stan,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/stan/stats/_meta/data.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
Oops, something went wrong.