You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/cmdenv.go
+26-23Lines changed: 26 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -26,29 +26,32 @@ import (
26
26
// that this system uses reflection to establish the relationship between the
27
27
// config struct and the command line options.
28
28
typeCmdEnvstruct {
29
-
ConfigLocationstring`short:"c" long:"config" env:"REFINERY_CONFIG" default:"/etc/refinery/refinery.yaml" description:"config file or URL to load"`
30
-
RulesLocationstring`short:"r" long:"rules_config" env:"REFINERY_RULES_CONFIG" default:"/etc/refinery/rules.yaml" description:"config file or URL to load"`
31
-
HTTPListenAddrstring`long:"http-listen-address" env:"REFINERY_HTTP_LISTEN_ADDRESS" description:"HTTP listen address for incoming event traffic"`
32
-
PeerListenAddrstring`long:"peer-listen-address" env:"REFINERY_PEER_LISTEN_ADDRESS" description:"Peer listen address for communication between Refinery instances"`
33
-
GRPCListenAddrstring`long:"grpc-listen-address" env:"REFINERY_GRPC_LISTEN_ADDRESS" description:"gRPC listen address for OTLP traffic"`
HoneycombAPIstring`long:"honeycomb-api" env:"REFINERY_HONEYCOMB_API" description:"Honeycomb API URL"`
39
-
HoneycombAPIKeystring`long:"honeycomb-api-key" env:"REFINERY_HONEYCOMB_API_KEY" description:"Honeycomb API key (for logger and metrics)"`
40
-
HoneycombLoggerAPIKeystring`long:"logger-api-key" env:"REFINERY_HONEYCOMB_LOGGER_API_KEY" description:"Honeycomb logger API key"`
41
-
LegacyMetricsAPIKeystring`long:"legacy-metrics-api-key" env:"REFINERY_HONEYCOMB_METRICS_API_KEY" description:"API key for legacy Honeycomb metrics"`
42
-
OTelMetricsAPIKeystring`long:"otel-metrics-api-key" env:"REFINERY_OTEL_METRICS_API_KEY" description:"API key for OTel metrics if being sent to Honeycomb"`
43
-
QueryAuthTokenstring`long:"query-auth-token" env:"REFINERY_QUERY_AUTH_TOKEN" description:"Token for debug/management queries"`
44
-
AvailableMemoryMemorySize`long:"available-memory" env:"REFINERY_AVAILABLE_MEMORY" description:"The maximum memory available for Refinery to use (ex: 4GiB)."`
45
-
Debugbool`short:"d" long:"debug" description:"Runs debug service (on the first open port between localhost:6060 and :6069 by default)"`
46
-
Versionbool`short:"v" long:"version" description:"Print version number and exit"`
47
-
InterfaceNamesbool`long:"interface-names" description:"Print system's network interface names and exit."`
48
-
Validatebool`short:"V" long:"validate" description:"Validate the configuration files, writing results to stdout, and exit with 0 if valid, 1 if invalid."`
49
-
NoValidatebool`long:"no-validate" description:"Do not attempt to validate the configuration files. Makes --validate meaningless."`
50
-
WriteConfigstring`long:"write-config" description:"After applying defaults, environment variables, and command line values, write the loaded configuration to the specified file as YAML and exit."`
51
-
WriteRulesstring`long:"write-rules" description:"After applying defaults, write the loaded rules to the specified file as YAML and exit."`
29
+
ConfigLocationstring`short:"c" long:"config" env:"REFINERY_CONFIG" default:"/etc/refinery/refinery.yaml" description:"config file or URL to load"`
30
+
RulesLocationstring`short:"r" long:"rules_config" env:"REFINERY_RULES_CONFIG" default:"/etc/refinery/rules.yaml" description:"config file or URL to load"`
31
+
HTTPListenAddrstring`long:"http-listen-address" env:"REFINERY_HTTP_LISTEN_ADDRESS" description:"HTTP listen address for incoming event traffic"`
32
+
PeerListenAddrstring`long:"peer-listen-address" env:"REFINERY_PEER_LISTEN_ADDRESS" description:"Peer listen address for communication between Refinery instances"`
33
+
GRPCListenAddrstring`long:"grpc-listen-address" env:"REFINERY_GRPC_LISTEN_ADDRESS" description:"gRPC listen address for OTLP traffic"`
HoneycombAPIstring`long:"honeycomb-api" env:"REFINERY_HONEYCOMB_API" description:"Honeycomb API URL"`
42
+
HoneycombAPIKeystring`long:"honeycomb-api-key" env:"REFINERY_HONEYCOMB_API_KEY" description:"Honeycomb API key (for logger and metrics)"`
43
+
HoneycombLoggerAPIKeystring`long:"logger-api-key" env:"REFINERY_HONEYCOMB_LOGGER_API_KEY" description:"Honeycomb logger API key"`
44
+
LegacyMetricsAPIKeystring`long:"legacy-metrics-api-key" env:"REFINERY_HONEYCOMB_METRICS_API_KEY" description:"API key for legacy Honeycomb metrics"`
45
+
OTelMetricsAPIKeystring`long:"otel-metrics-api-key" env:"REFINERY_OTEL_METRICS_API_KEY" description:"API key for OTel metrics if being sent to Honeycomb"`
46
+
QueryAuthTokenstring`long:"query-auth-token" env:"REFINERY_QUERY_AUTH_TOKEN" description:"Token for debug/management queries"`
47
+
AvailableMemoryMemorySize`long:"available-memory" env:"REFINERY_AVAILABLE_MEMORY" description:"The maximum memory available for Refinery to use (ex: 4GiB)."`
48
+
Debugbool`short:"d" long:"debug" description:"Runs debug service (on the first open port between localhost:6060 and :6069 by default)"`
49
+
Versionbool`short:"v" long:"version" description:"Print version number and exit"`
50
+
InterfaceNamesbool`long:"interface-names" description:"Print system's network interface names and exit."`
51
+
Validatebool`short:"V" long:"validate" description:"Validate the configuration files, writing results to stdout, and exit with 0 if valid, 1 if invalid."`
52
+
NoValidatebool`long:"no-validate" description:"Do not attempt to validate the configuration files. Makes --validate meaningless."`
53
+
WriteConfigstring`long:"write-config" description:"After applying defaults, environment variables, and command line values, write the loaded configuration to the specified file as YAML and exit."`
54
+
WriteRulesstring`long:"write-rules" description:"After applying defaults, write the loaded rules to the specified file as YAML and exit."`
0 commit comments