HOST-METERING.CONF(5)

NAME
host-metering.conf - the configuration file for host-metering

FILE FORMAT

The file has an ini-style syntax and consists of sections and parameters. Only the [host-metering] section is recognized.

SECTIONS

  [host-metering]

Section parameters

write_url (string)
    Remote server endpoint.

write_interval_sec (integer)
    Interval between writes to remote server in seconds.

host_cert_path (string)
    Path to host certificate that is used for authentication with remote server.

host_cert_key_path (string)
    Path to host certificate key that is used for authentication with remote server.

collect_interval_sec (integer)
    Interval between collecting host metrics in seconds.

label_refresh_interval_sec (integer)
    Interval between refreshing host labels in seconds.

send_hostname (string)
    Send hostname to remote server. By default yes set to no to disable.

write_retry_attempts (integer)
    Number of write attempts to remote server.

write_retry_min_int_sec (integer)
    Minimum interval between write retries in seconds.

write_retry_max_int_sec (integer)
    Maximum interval between write retries in seconds.

write_timeout_sec (integer)
    Timeout for write to remote server in seconds.

metrics_max_age_sec (integer)
    Maximum age of collected metrics in seconds. After the time, the metrics are dropped.

metrics_wal_path (string)
    Path to directory where write ahead log files are stored.

log_level (string)
    Log level. Possible values are: DEBUG, INFO, WARN, ERROR, TRACE.

log_path (string)
    Path to log file. Default is empty - stderr.

log_prefix (string)
    Prefix of log messages. Default is empty. Format: "[PREFIX][FLAG]*" PREFIX: string until first occurance of % FLAGS:

        %d  Date

        %t  Time

        %m  Microseconds

        %l  Long file name

        %s  Short file name

        %z  Use UTC

        %p  Move the "PREFIX" from the beginning of the line to before the message

        %S  Datetime (same as "%d %t")

EXAMPLES

1. The following example shows how to switch the logging to DEBUG level.

    [host-metering]
    log_level = DEBUG

SEE ALSO
host-metering(1)