Back to Beats

Stan module [metricbeat-module-stan]

docs/reference/metricbeat/metricbeat-module-stan.md

9.4.02.3 KB
Original Source

% This file is generated! See metricbeat/scripts/mage/docs_collector.go

Stan module [metricbeat-module-stan]

:::::{admonition} Prefer to use {{agent}} for this use case? Refer to the Elastic Integrations documentation.

::::{dropdown} Learn more {{agent}} is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can also protect hosts from security threats, query data from operating systems, forward data from remote services or hardware, and more. Refer to the documentation for a detailed comparison of {{beats}} and {{agent}}.

::::

:::::

The STAN module uses STAN monitoring server APIs to collect metrics.

The default metricsets are channels, stats and subscriptions.

Compatibility [_compatibility_47]

The STAN module is tested with STAN 0.15.1.

Dashboard [_dashboard_41]

Dashboards for topic message count and queue depth are included:

Example configuration [_example_configuration]

The Stan module supports the standard configuration options that are described in Modules. Here is an example configuration:

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

This module supports TLS connections when using ssl config field, as described in SSL. It also supports the options described in Standard HTTP config options.

Metricsets [_metricsets]

The following metricsets are available: