Back to Beats

Golang module [metricbeat-module-golang]

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

9.4.01.2 KB
Original Source

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

Golang module [metricbeat-module-golang]

The golang module collects metrics by submitting HTTP GET requests to golang-expvar-api.

Example configuration [_example_configuration]

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

yaml
metricbeat.modules:
- module: golang
  #metricsets:
  #  - expvar
  #  - heap
  period: 10s
  hosts: ["localhost:6060"]
  heap.path: "/debug/vars"
  expvar:
    namespace: "example"
    path: "/debug/vars"

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: