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 |
---|---|---|
|
int |
CounterDefaults-DeduplicationPeriod (default 10). |
|
loat |
CounterDefaults-DeduplicationThreshold (default 0.75). |
|
string |
Path to config file. |
|
– |
Output config template and exit. |
|
string |
Postgresql connection string (default |
|
– |
Print help information. |
|
string |
IP:port to listen on (default |
|
– |
Multiple instance running or not (default true). |
The format of environment variable for flag -my-flag
is CFG_MY_FLAG
.
Priority:
Defaults from source code (lowest priority).
Configuration file.
Environment variables.
Command line.