HOST-METERING(1)

NAME
host-metering - Host metering service

SYNOPSIS
host-metering [--config CONFIG_FILE_PATH] daemon

DESCRIPTION
host-metering Host metering service regularly notifies remote server about the host's CPU count together with subscription and cloud information.

OPTIONS

--config=CONFIG_FILE_PATH
    Path to configuration file. Default is /etc/host-metering.conf

ENVIRONMENT VARIABLES

HTTP_PROXY Will be used as the proxy URL for HTTP requests unless overridden by NO_PROXY. HTTPS_PROXY Will be used as the proxy URL for HTTPS requests unless overridden by NO_PROXY. NO_PROXY Specifies a string that contains comma-separated values specifying hosts that should be excluded from proxying. Each value is represented by an IP address prefix (1.2.3.4), an IP address prefix in CIDR notation (1.2.3.4/8), a domain name, or a special DNS label (*). An IP address prefix and domain name can also include a literal port number (1.2.3.4:80). A domain name matches that name and all subdomains. A domain name with a leading "." matches subdomains only. For example "foo.com" matches "foo.com" and "bar.foo.com"; ".y.com" matches "x.y.com" but not "y.com". A single asterisk (*) indicates that no proxying should be done. A best effort is made to parse the string and errors are ignored. More details can be found on the offical go http documentation: https://pkg.go.dev/net/http#ProxyFromEnvironment HOST_METERING_WRITE_URL Remote server endpoint. HOST_METERING_WRITE_INTERVAL_SEC Interval between writes to remote server in seconds. HOST_METERING_HOST_CERT_PATH Path to host certificate that is used for authentication with remote server. HOST_METERING_HOST_CERT_KEY_PATH Path to host certificate key that is used for authentication with remote server. HOST_METERING_COLLECT_INTERVAL_SEC Interval between collecting host metrics in seconds. HOST_METERING_LABEL_REFRESH_INTERVAL_SEC Interval between refreshing host labels in seconds. HOST_METERING_SEND_HOSTNAME Send hostname to remote server. By default yes set to no to disable. HOST_METERING_WRITE_RETRY_ATTEMPTS Number of write attempts to remote server. HOST_METERING_WRITE_RETRY_MIN_INT_SEC Minimum interval between write retries in seconds. HOST_METERING_WRITE_RETRY_MAX_INT_SEC Maximum interval between write retries in seconds. HOST_METERING_WRITE_TIMEOUT_SEC Timeout for write to remote server in seconds. HOST_METERING_METRICS_MAX_AGE_SEC Maximum age of collected metrics in seconds. After the time, the metrics are dropped. HOST_METERING_METRICS_WAL_PATH Path to directory where write ahead log files are stored. HOST_METERING_LOG_LEVEL Log level. Possible values are: DEBUG, INFO, WARN, ERROR, TRACE. HOST_METERING_LOG_PATH Path to log file. Default is empty - stderr. HOST_METERING_LOG_PREFIX 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")

FILES

/etc/host-metering.conf
    Default configuration file.

/var/run/host-metering
    The default directory for storing write ahead log files

EXIT STATUS
0 if the command was successful 1 if an error occurred 2 if configuration is invalid

SEE ALSO
host-metering.conf(5)