Exporter

Each exporter configuration item is a map with two required keys:

  • name, which defines the exporter name

  • type, which selects the concrete exporter type and therefore determines how the remaining keys are interpreted

The available exporter types are documented below.

Exporters

Common Keys

This section describes common keys shared by many exporter types.

name

required, type: metric node name

Exporter name.

type

required, type: str

Exporter type.

prefix

optional, type: metric name prefix

Prefix added to all metric names.

global_tags

optional, type: static metrics tags

Static tags added to all metrics.

Export Runtimes

An export runtime is the loop that emits metrics at the configured emit_interval.

Stream Export Runtime

host

required, type: host

Peer host name.

port

required, type: u16

Peer server port.

default: each exporter will set a default port value

resolve_retry_wait

optional, type: humanize duration

Wait time before retrying after a resolution failure.

default: 30s

connect_retry_wait

optional, type: humanize duration

Wait time before retrying after a connection failure.

default: 10s

HTTP Export Runtime

host

required, type: host

Peer host name.

port

required, type: u16

Peer server port.

default: each exporter will set a default port value

resolve_retry_wait

optional, type: humanize duration

Wait time before retrying after a resolution failure.

default: 30s

connect_retry_wait

optional, type: humanize duration

Wait time before retrying after a connection failure.

default: 10s

rsp_header_max_size

optional, type: usize

Maximum response-header size.

default: 8192

body_line_max_length

optional, type: usize

Maximum line length accepted in the response body.

default: 512