prefix

Use the prefix stanza entry to specify the prefix that is prepended to the statistic component name when generating the metric name.

Syntax

prefix = <prefix>

Description

Specifies the prefix that is prepended to the statistic component name when generating the metric name that is sent to the statsd server. The prefix can include macros that allow dynamic substitution of information.

The supported macros include the following values:
%HOSTNAME%
The fully qualified system host name.
%ID%
A unique identifier that is generated when the process starts.

Options

prefix
The prefix used when generating the metric name.

Usage

This stanza entry is optional.

Default value

None.

Example

Example of a prefix:

prefix = instanceA.
Example that uses a macro:
prefix = instanceA.%ID%.