-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metricbeat] Add STAN (NATS streaming) module (#14839)
- Loading branch information
Showing
47 changed files
with
5,564 additions
and
6 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,55 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-module-stan]] | ||
[role="xpack"] | ||
== Stan module | ||
|
||
beta[] | ||
|
||
This is the STAN module. The STAN module uses https://github.com/nats-io/nats-streaming-server/blob/master/server/monitor.go[STAN monitoring server APIs] to collect metrics. | ||
|
||
The default metricsets are `channels`, `stats` and `subscriptions`. | ||
|
||
[float] | ||
=== Compatibility | ||
|
||
The STAN module is tested with STAN 0.15.1. | ||
|
||
|
||
[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.metrics_path: "/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,24 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-stan-channels]] | ||
=== Stan channels metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/stan/channels/_meta/docs.asciidoc[] | ||
|
||
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default. | ||
|
||
==== 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::../../../../x-pack/metricbeat/module/stan/channels/_meta/data.json[] | ||
---- |
Oops, something went wrong.