Exporter

The type for each exporter config is map, with two always required keys:

  • name, which specify the name of the exporter.

  • type, which specify the real type of the exporter, decides how to parse other keys.

There are many types of exporter, each with a section below.

Exporters

Common Keys

This section describes the common keys, they may be used by many exporters.

name

required, type: metric node name

Set the name of the exporter.

type

required, type: str

Set the type of the exporter.

prefix

optional, type: metric name prefix

Set the prefix to add to all metric names.

global_tags

optional, type: static metrics tags

Set the tags to add to all metrics.

Export Runtimes

Export runtime is the loop runtime to emit metrics at the given emit_interval.

Stream Export Runtime

host

required, type: host

Set the peer host name.

port

required, type: u16

Set the port of the peer server.

default: each exporter will set a default port value

resolve_retry_wait

optional, type: humanize duration

Set how many time to wait before next connect after resolve error.

default: 30s

connect_retry_wait

optional, type: humanize duration

Set how many time to wait before next connect after connect error.

default: 10s

HTTP Export Runtime

host

required, type: host

Set the peer host name.

port

required, type: u16

Set the port of the peer server.

default: each exporter will set a default port value

resolve_retry_wait

optional, type: humanize duration

Set how many time to wait before next connect after resolve error.

default: 30s

connect_retry_wait

optional, type: humanize duration

Set how many time to wait before next connect after connect error.

default: 10s

rsp_header_max_size

optional, type: usize

Set the max response header size.

default: 8192

body_line_max_length

optional, type: usize

Set the max line size in the response body.

default: 512