counter

The counter configuration is done through environment variables and command line flags. You can also use a configuration file counter.yaml and find its default content here.

When configuring counter, refer to the following parameters:

Command line flags

Type

Description

-CounterDefaults-DeduplicationPeriod

int

CounterDefaults-DeduplicationPeriod (default 10).

-CounterDefaults-DeduplicationThreshold

loat

CounterDefaults-DeduplicationThreshold (default 0.75).

-config

string

Path to config file.

-config-template

Output config template and exit.

-database-connection-string

string

Postgresql connection string (default dbname=ffcounter host=/var/run/postgresql sslmode=disable)

-help

Print help information.

-listen

string

IP:port to listen on (default :18300).

-sharded

Multiple instance running or not (default true).

The format of environment variable for flag -my-flag is CFG_MY_FLAG.

Priority:

  1. Defaults from source code (lowest priority).

  2. Configuration file.

  3. Environment variables.

  4. Command line.